- Read the NFT item index from the item contract via get_nft_data().
- Query the collection with get_nft_address_by_index(index).
- 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