⛏️getNftOwner
Last updated
Last updated
The transferNFT
function allows for the transfer of a non-fungible token (NFT) between two addresses on the Casper blockchain network.
The function uses the CEP47Client library and makes use of the CasperServiceByJsonRPC to retrieve the state root hash and account information.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
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:
Here is an example of how to make a transferNFT
request using the Nest SDK:
NFT Marketplaces: The transferNFT
function can be used by NFT marketplaces to facilitate the transfer of NFTs between buyers and sellers.
Gaming Platforms: The function can be used by gaming platforms to transfer NFT assets between players.
Decentralized Applications: The transferNFT
function can be used by developers building decentralized applications that require the transfer of NFTs on the Casper network.
RPC_API
string
The RPC API for the Casper network
privateKey
string
The private key of the owner of the NFT
receiver
string
The receiver address for the NFT
tokenId
string
The ID of the NFT being transferred
owner
string
The current owner of the NFT
tokenId
string
The ID of the transferred NFT
txHash
string
The transaction hash of the transfer