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)
function combined with the balanceOf(owner)
function to loop and retrieve all tokenIds owned by an address.
Last updated