Get token balance(s)
Retrieve token balance(s) for one or more addresses at given block(s). Corresponds to the <a href="/chifra/chainstate/#chifra-tokens">chifra tokens</a> command line.
Query parameters
two or more addresses (one for --approvals), the first is an ERC20 token, balances for the rest are reported
an optional list of one or more blocks at which to report balances, defaults to 'latest'
returns all open approvals for the given address(es)
which parts of the token information to retrieve
consider each address an ERC20 token except the last, whose balance is reported for each token
only report a balance when it changes from one block to the next
suppress the display of zero balance accounts
the chain to use
suppress the header in the output
force the results of the query into the cache
removes related items from the cache
export format, one of [ txt | csv | json ]
Response
returns the requested data
Example response
{
"holder": "0x2910543af39aba0cd09dbb2d50200b3e800a63d2",
"balance": "624980000000000000",
"address": "0xbb9bc244d798123fde783fcc1c72d3bb8c189413",
"name": "The DAO Original",
"decimals": 1,
"isContract": true,
"isErc20": true,
"isErc721": true
}