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
Parameter | Type | Description |
---|---|---|
listingId | BigNumberish | The listing id to buy |
quantityDesired | BigNumberish | the quantity to buy |
receiver | string | (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.