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"}'

  • Path parameter:

chain: chain to work with.

Main chains: ETHEREUM, POLYGON

Testnet chains: SEPOLIA, GOERLI, MUMBAI, SHIMMEREVM

contract: smart contract address

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"}'

  • Path parameter:

chain: chain to work with.

Main chains: ETHEREUM, POLYGON

Testnet chains: SEPOLIA, GOERLI, MUMBAI, SHIMMEREVM

contract: smart contract address

Last updated