Carbon SDK
  • Carbon SDK
  • Integration Guide
    • Installation
    • Vocabulary
    • Carbon Instance
    • Marketplace Config
    • Collection Config
    • Listing Items
    • Delisting Items
    • Buying Items
    • Custodial Items
    • Example Asset Flows
  • Team
  • FAQs
Powered by GitBook
On this page
  • Backend
  • Delist or Buy
  • Frontend
  1. Integration Guide

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.

await carbon.methods.delistItem({
    itemId,
})

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.

await carbon.methods.delistOrBuyItem({
    listing,
    maxPrice
})

Frontend

Just like the backend, you can use the delistItem helper method to either call the delistVirtual or delistNft method based on the itemId.

await carbon.methods.delistItem({
    itemId,
})
PreviousListing ItemsNextBuying Items

Last updated 2 years ago