Delisting Items
Backend
Use the delistItem
helper method to either call the delistVirtual
or delistNft
method based on the itemId. The marketplace authority must be the seller in this case.
Delist or Buy
If you are delisting items from the Solana marketplace via an off-chain trigger (e.g. an off-chain item was just purchased and now you need to remove the Solana listing for the same item), use the delistOrBuyItem
method to automatically delist or buy the item based on who the seller is.
⚠️ It's highly recommended to pass in the
maxPrice
parameter to make sure the on-chain listing hasn't been updated to a higher than expected price.
Frontend
Just like the backend, you can use the delistItem
helper method to either call the delistVirtual
or delistNft
method based on the itemId.
Last updated