NFT | Ownership Verification
NFT ownership verification on Flow
You can use this API to verify if an account is the real owner of an NFT existed in Flow blockchain.
API Doc
Curl call example
curl -X GET "http://0.0.0.0:7000/v2/nftkit/nft/verifier/chain/{chain}/contract/{contractAddress}/verifyNftOwnership/Flow"
-H "accept: application/json"
Path parameters:
chain
: [string] chain to work with. EitherTESTNET
orMAINNET
.contractAddress
: [string] smart contract address.
Query parameters:
account
: [string] owner of the NFT.tokenId
: [string] token id of the NFT.collectionPath:
[string] Collection storage/public/private path.
Example:
curl -X GET "http://0.0.0.0:7000/v2/nftkit/nft/verifier/chain/TESTNET/contract/0xa9ccb9756a0ee7eb/verifyNftOwnership/Flow?account=0xe8e83eb775b67bc2&tokenId=1&collectionPath=%2Fpublic%2FexampleNFTCollection"
-H "accept: application/json"
NFT ownership verification in collection on Flow
We use this API to verify that an account has a NFT within a particular collection.
API Doc
Curl call example
curl -X GET "http://0.0.0.0:7000/v2/nftkit/nft/verifier/chain/{chain}/contract/{contractAddress}/verifyNftOwnershipWithinCollection/Flow"
-H "accept: application/json"
Path parameters:
chain
: [string] chain to work with. EitherTESTNET
orMAINNET
.contractAddress
: [string] smart contract address.
Query parameters:
account
: [string] owner of the NFT.collectionPath:
[string] Collection storage/public/private path.
Example:
curl -X GET "http://0.0.0.0:7000/v2/nftkit/nft/verifier/chain/TESTNET/contract/0xa9ccb9756a0ee7eb/verifyNftOwnershipWithinCollection/Flow?account=0xe8e83eb775b67bc2&collectionPath=%2Fpublic%2FexampleNFTCollection"
-H "accept: application/json"
Last updated
Was this helpful?