listAsset()

List an Asset in the market

Create a new Listing for a provided assetId. Price and (currency or currencyId) are required.

Parameters

export type ListAssetProps = {
    assetId: string;
    price: number;
    liveTime?: number;
    status?: ListingUpdateStatus;
    walletUserId?: string;
    currencyId?: string;
    currency?: string;
}

Examples

const response = await assetlayer.listings.listAsset({
    assetId: 'assetId',
    currencyId: 'currencyId',
    price: 100
});

Return Types

type ReturnType = CreateListingResponse;
Listing

Alternatives

new()

Last updated