Canto Name Service
  • Welcome to Canto Name Service (CNS)
  • 🤓Technicals
    • Integrating
      • Get Primary Name
      • Get TokenId From Name
      • Get Name from TokenId
      • Get All Tokens Owned by an Address
    • Contract Address
Powered by GitBook
On this page
  1. Technicals
  2. Integrating

Get All Tokens Owned by an Address

given an address, how do I find all tokens owned by that address?

PreviousGet Name from TokenIdNextContract Address

Last updated 2 years ago

CNS uses the openzeppelin ERC721Enumerable extension which allows users to use the tokenOfOwnerByIndex(address owner, uint256 index) combined with the balanceOf(owner) function to loop and retrieve all tokenIds owned by an address.

🤓
function