Loading...
With this API , you can verify the ownership of a specific NFT by its unique Token_id.
Token_id
Swagger Doc | ReDoc
Path parameters:
chain:[string] chain to work with. Either testnet or mainnet .
chain
testnet
mainnet
contractAddress:[string] smart contract account .
contractAddress
token_id:[string] Flow token_id of the NFT.
token_id
collectionPublicPath:[string] path of the collection.
collectionPublicPath
Example:
curl -X GET "http://0.0.0.0:7000/v2/nftkit/nft/flow/chain/{chain}/account/{account_id}/{contractAddress}/{collectionPublicPath}/{token_id}/getNFTById" -H "Content-Type: application/json"
curl -X POST "http://0.0.0.0:7000/v2/nftkit/nft/flow/chain/testnet/account/0xe8e83eb775b67bc2/0xa9ccb9756a0ee7eb/%2Fpublic%2FexampleNFTCollection/1/getNFTById" -H "accept: application/json" -d ""
var chain = "TESTNET" var account_id = "0xe8e83eb775b67bc2" var collectionPath = "/public/exampleNFTCollection" var token_id = "1" var contractAddress = "0xa9ccb9756a0ee7eb" var result = FlowNftService.getNFTbyId(account_id, contractAddress, collectionPath, token_id, FlowChain.valueOf(chain)) println(result)
With this API , you can verify the ownership of All The NFTs for a given account.
curl -X POST "http://0.0.0.0:7000/v2/nftkit/nft/flow/chain/{chain}/account/{account_id}/AllNFTs" -H "accept: application/json" -d ""
account_id : your account.
account_id
curl -X POST "http://0.0.0.0:7000/v2/nftkit/nft/flow/chain/testnet/account/0xe8e83eb775b67bc2/AllNFTs" -H "accept: application/json" -d ""
var chain = "TESTNET" var account_id = "0xe8e83eb775b67bc2" var result = FlowNftService.getAllNFTs(account_id, FlowChain.valueOf(chain)) println(result)
With this API , you can verify the ownership of NFTs within a collection.
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"
account_id:[string] your account .
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)
🖼️
Get NFTs for Account
📌
Get NFTs in Collection
🚀
Get NFT by Token id