NFT ownership verification
With this API , you can verify the ownership of NFTs within a collection.
API Doc
Swagger Doc | ReDoc
Curl call example
curl -X GET "http://0.0.0.0:7000/v2/nftkit/nft/flow/chain/{chain}/account/{account_id}/{collectionPath}/getNFTinCollection"
-H "Content-Type: application/json"
Path parameters:
chain
:[string] chain to work with. Either testnet
or mainnet
.
account_id
:[string] your account .
collectionPublicPath
:[string] path of the collection.
Example:
curl -X POST "http://0.0.0.0:7000/v2/nftkit/nft/flow/chain/testnet/account/0xe8e83eb775b67bc2/%2Fpublic%2FexampleNFTCollection/getNFTinCollection"
-H "accept: application/json" -d ""
var chain = "TESTNET"
var account_id = "0xe8e83eb775b67bc2"
var collectionPath = "/public/exampleNFTCollection"
var result = FlowNftService.getNFTinCollectionPath(account_id,collectionPath, FlowChain.valueOf(chain))
println(result)