‣
The balanceOf()
function was mainly added to the contract for backward compatibility with EIP-721 spec. You can check who the badge's owner is by calling ownerOf()
but that obviously require you to have prior knowledge of your badgeId/tokenId. It is currently unavailable for one to check the balance of an account for a specific badge directly from the contracts. We plan to support this soon. In the meantime, this is already queryable via the subgraph
https://docs.otterspace.xyz/developer-docs/subgraph-wiki (look for section "Check if an address owns a certain badge")
‣