Cancel Listing - tx

Cancel a 𝔉rc20 token listing

This transaction does not need to inscribe, so it does not include the cost of inscriptions.

Transaction parameters:

Key
Required
FType
Description

listingId

t.UInt64

ListingID: the unique listing id in user's storefront. You can get the listingId by querying the marketplace

Transaction code example:

import txUserCancelListing from "@fixes/contracts/transactions/marketplace/user-cancel-listing.cdc?raw";

async function userCancelListing(
  listingId: string
) {
  const txid = await flow.sendTransaction(txUserCancelListing, (arg, t) => [
    arg(listingId, t.UInt64),
  ]);
  return txid;
}

Transaction source code

https://github.com/fixes-world/fixes/blob/main/cadence/transactions/marketplace/user-cancel-listing.cdc

Last updated