Returns block header (including hashes of the transactions) by block number.
Sample request
Request query parameters
Parameter
Description
blockno*
a nonnegative integer that represents the block number
Sample response
Note: If the block is an epoch block (the epoch flag is set to true), then the extraData field contains, in addition to other fields, a list of validators. Otherwise, the list is always empty.
Get block header by block hash
Returns block header (including hashes of the transactions) by block hash.
Sample request
Request query parameters
Parameter
Description
blockhash*
hash of contents of the block
Sample response
Get an array of block headers by block number range
Returns an array of block headers by block number range (maximum of 20 blocks per call).
Sample request
Request query parameters
Parameter
Description
startblock*
the integer block number that represents the first number of range
endblock*
the integer block number that represents the last number of range
sort*
the sorting preference, use asc to sort by ascending and desc to sort by descending
Sample response
Get an array of block headers by number list
Returns an array of block headers by number list (maximum of 20 blocks per call).
Sample request
Request query parameters
Parameter
Description
blockno*
the numbers separated by ,
sort
the sorting preference, use asc to sort by ascending and desc to sort by descending, desc is default
Sample response
Get block number by block timestamp
Returns block number by the closest timestamp.
Sample request
Request query parameters
Parameter
Description
timestamp*
a nonnegative integer that represents the block timestamp (Unix timestamp in seconds)
closest*
direction to find the closest block number to given timestamp. Available values: before and after
Sample response
Get block account balances changes by block number
Returns all account balances changes in a block by block number.
Sample request
Request query parameters
Parameter
Description
blockno*
a nonnegative integer that represents the block number