Get All Tokens Owned by an Address
given an address, how do I find all tokens owned by that address?
Last updated
given an address, how do I find all tokens owned by that address?
Last updated
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.