Blocks
getBlocks
Get a list of all blocks (both canonical and orphaned) on the Mina Blockchain. Orphaned blocks are blocks that didn’t enter the canonical chain. Transactions that enter orphaned blocks are failed and wait to be executed until they’re added in a canonical block.
get/v1/blocks
Query parameters
pageinteger required
Queried API page.
sizeinteger required
Number of queried entries.
orderBy'ASC' | 'DESC' required
Sorting method: from the lowest element to the highest (ASC) or from the highest element to the lowest (DESC).
validatorAddressstring
Address of the queried block producer (validator).
sortBy'HEIGHT' | 'TIMESTAMP' | 'SLOT' | 'HEIGHT' | 'TIMESTAMP' | 'SLOT' required
Select sorting parameter.
type'CANONICAL' | 'ORPHANED' | 'ALL' | 'ALL' | 'CANONICAL' | 'ORPHANED' required
Select the queried block type.
Response
OK