buyListing()

Buy a market Listing

Purchase a Listing at the provided price/currency. Requires a logged in user.

Parameters

export type BuyListingProps = {
    listingId: string;
    price: number | string;
    currencyId?: string;
    currency?: string;
}

Examples

const success = await assetlayer.listings.buyListing({
    listingId: 'listingId',
    currency: 'USD',
    price: 1
});

Return Types

type ReturnType = boolean;

Last updated