🖼️Transfer NFTs
Transfer NFTs on any blockchain - ETH (Ethereum), BNB (Binance Smart Chain), MATIC (Polygon)
Transfer ERC721 Tokens (Non-Fungible)
To transfer ERC721 tokens, follow the steps:
Construct an
options
object and settype:"erc721"
receiver: "0x000..." //wallet address
contractAddress: "0x..." //contract of the ERC721 token
tokenId: 1
Call the Moralis transfer function as shown below
As it's only possible to transfer one ERC721 at a time, no amount
is
needed.
Transferring ERC1155 Tokens (Semi-Fungible)
To transfer ERC1155 tokens, follow the steps:
Construct an
options
object and settype:"erc721"
receiver: "0x000..." //wallet address
contractAddress: "0x..." //contract of the ERC721 token
tokenId: 1
amount: 15 //number of tokens to transfer
Call the Moralis transfer function as shown below
Resolving the results
Moralis.transfer()
returns a transaction response after it is executed. The below page shows how to consume the data returned.
Last updated