Xact
  • Welcome
  • SDK
    • About our SDK
    • JavaScript
      • Getting started
      • Login
      • Refresh an Account
      • Send Hbar
      • Associate a Token
      • Transfer a Token
      • Create a NFT
      • Sell a NFT
      • Withdraw a NFT from Sale
      • Buy a NFT
      • Buy a NFT from QR Code
    • PHP
      • Getting started
      • Login
      • Refresh an Account
      • Send Hbar
      • Associate a Token
      • Transfer a Token
      • Create NFT
      • Sell a NFT
      • Withdraw a NFT from Sale
      • Buy a NFT
      • Buy a NFT from QR Code
  • Resources
    • Demo applications
  • Support and Community
  • Discord Server
  • Telegram Group
Powered by GitBook
On this page
  1. SDK
  2. PHP

Withdraw a NFT from Sale

PreviousSell a NFTNextBuy a NFT

Last updated 3 years ago

CtrlK
  • Prerequisites:
  • Step 1: Withdrawing a NFT from sale

The following sample will show you how to withdraw a NFT for sale and transfer back the NFT to the seller account.

Prerequisites:

Sell a NFT

Step 1: Withdrawing a NFT from sale

/* TokenId of the NFT */
$tokenId = '';
/* ID of the NFTs you want to delete */
$nftIds = '';
/* Custom uniq ID */
$uniqId = '';
/* Define a Webhook */
$webhook = '';

/* Withdraw a NFT from Sale */
$qrCode = $client->deleteNFTFromSale([$tokenId, $uniqId], $webhook);

Find more details on the webhook implementation here

⭐ Congratulations! You have successfully withdraw your NFT !