Block APIs

GetBlock

This API returns the details of the block being queried with height.

REST Uri: /block/{height}

Returns

epoch: epoch of the block

height: height of the block

parent: hash of the parent block

transactions_hash: root hash of the transaction Merkle-Patricia trie

state_hash: root hash of the state Merkle-Patricia trie

timestamp: timestamp when the block was proposed

proposer: address of the proposer validator

hash: the block hash

transactions: json representation of the transactions contained in the block

raw: transaction details

type: type of the transaction

hash: hash of the transaction

status: status of the block

Request

GetBlocksByRange

This API returns a list of blocks given the page number and limit number.

REST Uri: /blocks/top_blocks

Query Parameters

pageNumber: the page number, 1 stands for the latest

limit: the limit size of each page

Returns

currentPageNumber: the number of current page

For each block it is similar to the returns of the GetBlock API.

Last updated

Was this helpful?