Get blocks
Retrieve one or more blocks from the chain or local cache. Corresponds to the <a href="/chifra/chaindata/#chifra-blocks">chifra blocks</a> command line.
Query parameters
a space-separated list of one or more block identifiers
display only transaction hashes, default is to display full transaction detail
display uncle blocks (if any) instead of the requested block
export the traces from the block as opposed to the block data
display a list of uniq address appearances per transaction
for the --uniq option only, export only from or to (including trace from or to)
display only the logs found in the block(s)
for the --logs option only, filter logs to show only those logs emitted by the given address(es)
for the --logs option only, filter logs to show only those with this topic(s)
export the withdrawals from the block as opposed to the block data
for the --logs option only, articulate the retrieved data if ABIs can be found
display only the count of appearances for --addrs or --uniq
force a write of the block's transactions to the cache (slow)
force a write of the block's traces to the cache (slower)
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 values in ether
export format, one of [ txt | csv | json ]
Response
returns the requested data
Example response
{
"blockNumber": 3141592,
"hash": "0x0b4c6fb75ded4b90218cf0346b0885e442878f104e1b60bf75d5b6860eeacd53",
"...": "...",
"transactions": []
}