Skip to main content

Transfer NFT

Transfer NFT

To transfer an ERC721 (NFT) asset, use the transferNFT() method. The method takes the following parameters as inputs:

ParameterTypeDescription
nftContractAddressaddressThe contract address of the ERC721 asset
recipientAddressaddressThe recipient's wallet address
tokenIdnumberThe ID of the asset you wish to transfer
const nftContractAddress = "NFT_CONTRACT_ADDRESS";
const recipientAddress = "RECEIVER_ADDRESS";
const tokenId = 1;
const res = await fuseSDK.transferNFT(
nftContractAddress,
recipientAddress,
tokenId
);

console.log(`UserOpHash: ${res?.userOpHash}`);
console.log("Waiting for transaction...");

const receipt = await res?.wait();
console.log("Transaction Hash:", receipt?.transactionHash);