⛏️checkNFT
Last updated
Last updated
The checkNFT
function checks the ownership and metadata of a specific non-fungible token (NFT) on the Casper blockchain and returns the NFT's ownership and metadata
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 checkNFT
request using the Nest SDK:
NFT marketplaces: The function can be used by NFT marketplaces to verify the ownership and metadata of NFTs before displaying them for sale.
NFT collectors: The function can be used by NFT collectors to check the ownership and metadata of NFTs they have acquired.
Smart contract developers: The function can be used by smart contract developers to check the ownership and metadata of NFTs in their contracts.
RPC_API
string
The RPC API endpoint of the Casper blockchain
privateKey
string
The user's private key in string format
tokenId
string
The user's private key in string format
status
number
Indicates if the function was successful (1) or not (0)
balanceOf
number
The balance of the user's account
ownerOfTokenOne
string
The public key of the NFT's owner
tokenOneMeta
object
The metadata of the NFT