Buying Items
Backend
See the Delist or Buy section in
Delisting ItemsFrontend
Buying Virtual Items
Since items can only be minted by the marketplace authority, the buyVirtual
method requires a signature from the marketplace authority (and the new mint). The transactions.buyVirtual
method can be used to generate a signed transaction to be sent back to the buyer for their signature.
With Custody
Depending on your use case, you may want to also ensure the item is put in the marketplace authority's control via delegation. In this case use the transactions.buyVirtualAndCustody
method to custody the new mint.
Buying NFTs
When buying an item that's already been minted as an NFT, it's much more straightforward. Similarly with the above example, we can also use the buyNftAndCustody
method to also custody the item.
Last updated