Skip to main content
Because the collection is the source of truth, verification goes through it:
  1. Read the NFT item index from the item contract via get_nft_data().
  2. Query the collection with get_nft_address_by_index(index).
  3. If the returned address equals the NFT item address, the item belongs to the collection.

High level

There is an API method that performs this verification off‑chain with a single request. Provide the addresses of the NFT item and NFT collection:
TypeScript

Low level

First, read the NFT item index. If the collection returns the same NFT item address for that index, the item belongs to the collection.
TypeScript