Get latest block
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.
getLatestBlockpopular method
Parameters
includeBodybooleanrequiredResponse fields
hashstringsizenumberbatchnumberepochnumbernetworkstringversionnumbernumbernumbertimestampnumberparentHashstringseedstringextraDatanumber[]stateHashstringbodyHashstringhistoryHashstringtransactionsany[]typestringequivocationProofsobject[]interlinkstring[]isElectionBlockbooleanjustificationunknownnextBatchInitialPunishedSetnumber[]parentElectionHashstringproducerunknownslotsany[]Interactive playground
Try the method against a public RPC endpoint.