0xcalldata

ERC-1155 function

balanceOf(address,uint256)

Returns one account’s balance for one ERC-1155 token ID.

Selector
0x00fdd58e
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
uint256
calldata68 bytes
sel0x00fdd58e
balanceOf(address,uint256)
0x000000000000000000000000001111111111111111111111111111111111111111
account · address =0x11111111…111111
0x20000000000000000000000000000000000000000000000000000000000000002a
id · uint256 =42

How balanceOf works

ERC-1155 balances are keyed by both account and token ID, so both values are encoded.

Parameters

NameSolidity typeMeaning
accountaddressAddress whose balance should be read.
iduint256Token type to query.

Return value

The account’s balance for that token ID.

uint256 result

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

View all ERC-1155 functions →