Skip to main content

MarketplaceDirect.buyoutListing() method

Buy a Listing

Example

// The listing ID of the asset you want to buy
const listingId = 0;
// Quantity of the asset you want to buy
const quantityDesired = 1;

await contract.direct.buyoutListing(listingId, quantityDesired);

Signature:

buyoutListing(listingId: BigNumberish, quantityDesired: BigNumberish, receiver?: string): Promise<TransactionResult>;

Parameters

ParameterTypeDescription
listingIdBigNumberishThe listing id to buy
quantityDesiredBigNumberishthe quantity to buy
receiverstring(Optional) optional receiver of the bought listing if different from the connected wallet

Returns:

Promise<TransactionResult>

Remarks

Buy a specific direct listing from the marketplace.