Buy a NFT from QR Code
Prerequisites:
Sell a NFTStep 1: Import the following modules
const { Client, CategoryNFT } = require("@xact-wallet-sdk/client");
require("dotenv").config();Step 2: Get your NFT
const tokenId = '' /* tokenId of the NFT */
const sellerAccountId = '' /* Account ID of the seller */
const nftId = '' /* nftId is Optional for old token */
const res = await client.getNFTForSaleByTokenId({tokenId, sellerAccountId, nftId});
console.log("your NFT", res.nft, "::QRCode", res.qrCode);Last updated