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
final tokenId = 1;
final res = await fuseSDK.transferNFT(
EthereumAddress.fromHex('NFT_CONTRACT_ADDRESS'),
EthereumAddress.fromHex('RECIPIENT_ADDRESS'),
tokenId,
);
print('UserOpHash: ${res.userOpHash}');

print('Waiting for transaction...');
final ev = await res.wait();
print('Transaction hash: ${ev?.transactionHash}');

Code example

For more code examples on using the Fuse Wallet SDK for Flutter for NFT Transfer, you can check out the official Flutter SDK repository.

Was this page helpful?