Transfer/Send NFT
This is a guide used to transfer an existing NFT.
Transfer Data:
const transferData = {
from: "0x...",
to: "0x...",
nftId: "1",
};
Get Contract Signer
Make sure you've contractSigner object before proceeding.
Transfer​
Please make sure your contractSigner
from previous step is derived from the right contract and call the transfer
function below accordingly.
- ERC721
- ERC1155
drip.transfer(transferData, contractSigner);
const amount = 10; // If you want to transfer 10 tokens.
drip.transfer(transferData, contractSigner, amount);