NFT | Ownership Verification
In this section, we have a set of APIs that help you verify ownership or traits of an NFT, making ownership-based access management possible.
Swagger Doc | ReDoc
NFT ownership verification
You can use this API to verify if an account is the real owner of an NFT.
curl -X POST "http://0.0.0.0:7000/nftkit/nft/verifier/chain/MUMBAI/contract/0xf277BE034881eE38A9b270E5b6C5c6f333Af2517/verifyCollection" \
-H "Content-Type: application/json" \
-d '{"account":"0x2555e3a97c4ac9705d70b9e5b9b6cc6fe2977a74","tokenId":"1"}'
chain
: chain to work with.
Main chains: ETHEREUM, POLYGON
Testnet chains: SEPOLIA, GOERLI, MUMBAI, SHIMMEREVM
contract
: smart contract address
{
"account": "string",
"tokenId": "string"
}
account
: [string] the NFT owner address.
tokenId
: [string] the NFT token ID.
NFT ownership verification with traits
The verification process can be based on NFT ownership and metadata traits.
curl -X POST "http://0.0.0.0:7000/nftkit/nft/verifier/chain/MUMBAI/contract/0xf277BE034881eE38A9b270E5b6C5c6f333Af2517/verifyTrait" \
-H "Content-Type: application/json" \
-d '{"account":"0x2555e3a97c4ac9705d70b9e5b9b6cc6fe2977a74","tokenId":"1","traitType":"pass","traitValue":"silver"}'
chain
: chain to work with.
Main chains: ETHEREUM, POLYGON
Testnet chains: SEPOLIA, GOERLI, MUMBAI, SHIMMEREVM
contract
: smart contract address
{
"account": "string",
"tokenId": "string",
"traitType": "string",
"traitValue": "string"
}
account
: [string] the NFT owner address.
tokenId
: [string] the NFT token ID.
traitType
: [string] the name of the trait that you want to verify..
traitValue
: [string] the trait value.