getLatestBlock method

Returns the block at the head of the main chain. It has an option to include the transactions in the block, which defaults to false.

Params

ParameterTypeRequired
includeBodybooleanYes

Result

PropertyTypeRequired
hashstringYes
sizenumberYes
batchnumberYes
epochnumberYes
networkstringYes
versionnumberYes
numbernumberYes
timestampnumberYes
parentHashstringYes
seedstringYes
extraDatanumber[]Yes
stateHashstringYes
bodyHashstringYes
historyHashstringYes
transactionsany[]No
additionalFieldsobjectYes

Code Examples

Copy page
Create issue