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

Request

  • Base URL
    https://api.blockberry.one/mina-mesa
  • URL
    https://api.blockberry.one/mina-mesa/v1/blocks
  • Auth
    API key in header x-api-key

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).

addressstring

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

currentPageinteger
sizeinteger
totalItemsinteger
totalPagesinteger
totalCountinteger
lastboolean
totalElementsinteger
numberinteger
firstboolean
numberOfElementsinteger
emptyboolean

Changes

No recorded changes to this operation across all 1 revision of this API.