Docs

buyFromListing

Buys a listing from the marketplace.

Example

import { buyFromListing } from "thirdweb/extensions/marketplace";
const result = await buyFromListing({
contract,
listingId: 1n,
quantity: 1n,
recipient: "0x...",
});

Parameters

Returns

A promise that resolves to the transaction result.