📌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
Parameter | Type | Description |
---|---|---|
| string | Specifies the name of the blockchain network (e.g. eth, bsc, polygon, ava, gnosis, moonbeam) |
| string | The address of the deployed ERC721 contract |
| string | The ID of the ERC721 token to be transferred |
| string | The receiving address for the token transfer |
| string | The private key of the account used to sign the transaction |
Response
Property | Type | Description |
---|---|---|
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