Returns a list of consensus blocks, sorted from most to least recent.
get/consensus/blocks
Query parameters
limitinteger
The maximum numbers of items to return.
offsetinteger
The number of items to skip before starting to collect the result set.
frominteger
A filter on minimum block height, inclusive.
tointeger
A filter on maximum block height, inclusive.
afterstring date-time
A filter on minimum block time, inclusive.
beforestring date-time
A filter on maximum block time, exclusive.
hashstring
A filter on the block hash.
Response
A JSON object containing a list of consensus blocks.
Example response
{
"total_count": 412,
"is_total_count_clipped": true,
"blocks": [
{
"height": 8048956,
"hash": "0a29ac21fa69bb9e43e5cb25d10826ff3946f1ce977e82f99a2614206a50765c",
"timestamp": "2022-03-01T00:00:00Z",
"num_transactions": 17,
"gas_limit": "1234567890123456789012",
"size_limit": "1234567890123456789012",
"epoch": 13402,
"state_root": "8e39bf193f8a954ab8f8d7cb6388c591fd0785ea060bbd8e3752e266b54499d3"
}
]
}