Get All Tokens Owned by an Address

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

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

Last updated