Get token balance(s)
Changed onRetrieve 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.
Request
- Base URLhttp://localhost:8080
- Authnone declared
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
}Changes
- warning
removed the optional property
//////from the response with the status - warning
removed the optional property
//////from the response with the status - warning
removed the optional property
//////from the response with the status - warning
removed the optional property
//////from the response with the status - warning
removed the optional property
//////from the response with the status - info
added the optional property
//////to the response with the status - info
added the optional property
//////to the response with the status - info
added the optional property
//////to the response with the status - info
added the optional property
//////to the response with the status - info
added the optional property
//////to the response with the status - info
added the optional property
//////to the response with the status
- warning
- breaking
added to the
/response propertyoneOflist for the response status - breaking
the
/response's property type changed fromobjectto no type for status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - info
added the new optional
queryrequest parameterapprovals
- breaking