NFT | Ownership Verification
NFTs verification enables multiple use cases. The NFT Kit provides numerous approaches to verify the ownership of the NFTs and that the NFTs have customized properties.
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 "https://0.0.0.0:7000/v2/nftkit/nft/verifier/algorand/chain/{chain}/verifyNftOwnership"
-H "accept: application/json"Path Params :
chain: chain to work with. EitherALGORAND_TESTNET,ALGORAND_BETANET,ALGORAND_MAINNETassetId: The id of the Assetaddress: Address of the NFT holder
Example :
curl -X GET "http://0.0.0.0:7000/v2/nftkit/nft/verifier/algorand/chain/ALGORAND_TESTNET/verifyNftOwnership?assetId=257177857&account=GYFVJLKGSWQDHFBHBLABUXYHHSU544RV3WH4ZCF3S6HONSDP73TK4VGY3Y"
-H "accept: application/json"
import id.walt.nftkit.services.AlgorandNftService
import id.walt.nftkit.services.AlgorandChain
val assetId = "257177850"
val address = "GYFVJLKGSWQDHFBHBLABUXYHHSU544RV3WH4ZCF3S6HONSDP73TK4VGY3Y"
val result = AlgorandNftService.verifyOwnership(address , assetId, AlgorandChain.TESTNET)
println(result)
NFT ownership verification with traits :
You can use this API to verify if an account is the real owner of an NFT existed in Algorand blockchain with NFT property verification.
NFT ownership verification Based on Creator Address :
This Endpoint will verify if a given account has an NFT minted from a particular account .
NFT Metadata verification Against Dynamic Policy :
Code of the Rego policy that can be used for creating the dynamic policy :
Last updated
Was this helpful?
