Withdraw a NFT from Sale
Prerequisites:
Sell a NFTStep 1: Import the following modules
const { Client, CategoryNFT } = require("@xact-wallet-sdk/client");
require("dotenv").config();Step 2: Initializing withdraw NFT from sale
/* Update the fields with your informations */
const tokenId = '0.0.123456'; /* token Id of the NFT */
const nftIds = ['1@0.0.123456']; /* array of the nftIds to withdraw */
await client.deleteNFTFromSale({tokenId, nftIds});Step 3: Listen for the NFT's removal
Code Check ✅
Last updated