NFT | Ownership Verification

NFT ownership verification

You can use this API to verify if an account is the real owner of an NFT.

API Doc

Swagger Doc | ReDoc

Curl call example

curl -X GET "http://0.0.0.0:7000/v2/nftkit/nft/verifier/chain/{{chain}}/contract/{{contract}}/verifyNftOwnership?account={{account}}&tokenId={{tokenId}}" 
-H  "accept: application/json"

Path parameters:

  • chain: [string] chain to work with. Either ASTAR, MOONBEAM, UNIQUE, OPAL.

  • contract: [string] smart contract address.

Query parameters:

  • account: [string] owner of the NFT.

  • tokenId: [string] token id of the NFT

Example:

curl -X GET "http://0.0.0.0:7000/v2/nftkit/nft/verifier/chain/MOONBEAM/contract/0x41Ee4762421d659C1525D04B41CB740e9E262b21/verifyNftOwnership?account=0x2e3A8FAb541F188Eb2378a8a3720E6616fd38830&tokenId=7" 
-H  "accept: application/json"

NFT ownership verification within a collection

We use this API to verify that an account has a NFT within a particular collection.

API Doc

Swagger Doc | ReDoc

Curl call example

curl -X GET "http://0.0.0.0:7000/v2/nftkit/nft/verifier/chain/{{chain}}/contract/{{contract}}/verifyNftOwnershipWithinCollection?account={{account}}" 
-H  "accept: application/json"

Path parameters:

  • chain: [string] chain to work with. Either ASTAR, MOONBEAM, UNIQUE, OPAL.

  • contract: [string] smart contract address.

Query parameters:

  • account: [string] owner of the NFT.

Example:

curl -X GET "http://0.0.0.0:7000/v2/nftkit/nft/verifier/chain/MOONBEAM/contract/0x41Ee4762421d659C1525D04B41CB740e9E262b21/verifyNftOwnershipWithinCollection?account=0x2e3A8FAb541F188Eb2378a8a3720E6616fd38830" 
-H  "accept: application/json"

NFT ownership verification with traits

You can use this API to verify if an account is the real owner of an NFT existed in Polkadot blockchain with NFT property verification.

API Doc

Swagger Doc | ReDoc

Curl call example

curl -X GET "http://0.0.0.0:7000/v2/nftkit/nft/verifier/chain/{{chain}}/contract/{{contract}}/verifyNftOwnershipWithTraits?account={{account}}&tokenId={{tokenId}}&traitType={{traitType}}&traitValue={{traitValue}}"
-H  "accept: application/json"

Path parameters:

  • chain: [string] chain to work with. Either ASTAR, MOONBEAM, UNIQUE, OPAL.

  • contract: [string] smart contract address.

Query parameters:

  • account: [string] owner of the NFT.

  • tokenId: [string] token id of the NFT

  • traitType: [string] name of the property you want to verify

  • tokenId: [string] value of the property you want to verify

Example:

curl -X GET "http://0.0.0.0:7000/v2/nftkit/nft/verifier/chain/MOONBEAM/contract/0x41Ee4762421d659C1525D04B41CB740e9E262b21/verifyNftOwnershipWithTraits?account=0x2e3A8FAb541F188Eb2378a8a3720E6616fd38830&tokenId=7&traitType=trait&traitValue=value"
-H  "accept: application/json"

Last updated