Learn how to use the getLatestBlock JSON-RPC method.
getLatestBlock
getlatestBlock
returns a highly detailed response containing both standard and extraneous information about the latest block on the chain associated with chainId
.
This response includes full receipts of transactions contained within the latest block. This is non-toggleable.
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Success
The response is of type object
.