0xcalldata

ERC-721 function

balanceOf(address)

Returns how many ERC-721 tokens are assigned to an owner address.

Selector
0x70a08231
Mutability
view

Generate balanceOf calldata

Edit the example inputs to rebuild the bytes instantly in your browser. Nothing is sent and no transaction is submitted.

address
calldata36 bytes
sel0x70a08231
balanceOf(address)
0x000000000000000000000000001111111111111111111111111111111111111111
owner · address =0x11111111…111111

How balanceOf works

The result is a count, not a token ID or fungible token amount. Enumerating which IDs an owner holds requires additional indexing or an optional extension.

Parameters

NameSolidity typeMeaning
owneraddressAddress whose NFT count should be queried.

Return value

The number of NFTs owned by the address.

uint256 result

Return data comes back after execution and is not included in the calldata above.

View all ERC-721 functions →