listAssets()

List multiple Assets in the market

Create new Listings for provided assetIds. Price and (currency or currencyId) are required.

Parameters

export type ListAssetsProps = {
    assetIds: string[];
    price: number;
    liveTime?: number;
    status?: ListingUpdateStatus;
    walletUserId?: string;
    currencyId?: string;
    currency?: string;
}

Examples

const balance = await assetlayer.listings.listAssets({
    assetIds: ['assetId_1', 'assetId_2'],
    currencyId: 'currencyId',
    price: 100
});

Return Types

type ReturnType = CreateListingsResponse;
pageListing

Alternatives

pagenew()

Last updated