⛏️checkNFT
Description
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
Parameters
Name | Type | Description |
---|---|---|
| string | The RPC API endpoint of the Casper blockchain |
| string | The user's private key in string format |
| string | The user's private key in string format |
Response
Name | Type | Description |
---|---|---|
| number | Indicates if the function was successful (1) or not (0) |
| number | The balance of the user's account |
| string | The public key of the NFT's owner |
| object | The metadata of the NFT |
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 checkNFT
request using the Nest SDK:
Response
Use cases
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.
Last updated