useTransferNFT
Hook for transferring ERC721 or ERC1155 NFTs to another wallet address.
Available to use on contracts that implement either the ERC721 and ERC1155 interfaces, such as the Edition or NFT Collection .
The wallet address that initiates this transaction must have transfer permissions on the contract (i.e. the tokens are not soulbound). It also must have the required amount of token(s) available to transfer.
Mutation object to transfer NFTs
options
The mutation function takes an object with the following properties:
to
The wallet address to transfer the token(s) to.
To use the connected wallet address, use the useAddress
hook.
tokenId
The token ID of the NFT to transfer.
Can be a string
or number
.
amount (ERC1155 only)
If you are using an ERC1155 contract, specify the amount of tokens to transfer.