📌transfer
Description
The transfer
function transfers a specified ERC721 token with the given token ID from the caller's wallet to the specified receiver address and returns the transaction receipt.
Parameters
blockchain
string
Specifies the name of the blockchain network (e.g. eth, bsc, polygon, ava, gnosis, moonbeam)
contractAddress
string
The address of the deployed ERC721 contract
tokenId
string
The ID of the ERC721 token to be transferred
receiver
string
The receiving address for the token transfer
privateKey
string
The private key of the account used to sign the transaction
Response
Promise<Object>
object
Returns the transaction receipt object for the transfer of ERC721 token.
Example Request and Response
Prerequisites
Before making requests with NEST® SDK, you must have it installed.
You can install NEST® SDK using either npm
or yarn
. Use the following commands to install NEST® SDK:
Request
Here is an example of how to make a transfer
request using the NEST® SDK:
Response
Use Cases
NFT transfer: The transfer function can be used to transfer a specific ERC721 NFT from one address to another on a given blockchain network.
Marketplace transactions: The transfer function can be used in NFT marketplaces to transfer ownership of ERC721 tokens between different users.
Auction bidding: The transfer function can be used to transfer ERC721 tokens as part of auction bidding in a decentralized manner.
Last updated