Query Parameters
- querystringREQUIRED
query is a string, which has a form: 'condition AND condition ...' (no OR at the moment). condition has a form: 'key operation operand'. key is a string with a restricted set of possible symbols (
()'=>< are not allowed). operation can be =, <, <=, >, >=, CONTAINS. An operand can be a string (escaped with single quotes), number, date, or time
- pageintegerREQUIRED
The page number (1-based). The default value is 1
- per_pageintegerREQUIRED
The number of entries per page. The default value is 30
- order_bystringREQUIRED
The order in which blocks are sorted (asc or desc), by height. If empty, default asc sorting still applies
- match_eventsboolean
Matches attributes in query within events, in addition to the height and txhash
Returns
- blocksarray
An array of matching blocks
- block_idobject
The block ID object containing the hash and parts
- blockobject
The full block object including header, data, evidence, and last commit
- total_count
The total count of matching blocks