getLatestBlock
Learn how to use the getLatestBlock JSON-RPC method.
Contextualizing getLatestBlock
-
getlatestBlock
returns a highly detailed response containing both standard and extraneous information about the latest block on the chain associated withchainId
.This response includes full receipts of transactions contained within the latest block. This is non-toggleable.
Returned receipts contain the following attributes
Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Body
Version of the JSON-RPC protocol, should be 2.0.
The request identifier.
API method being called.
particle_getLatestBlock
The chain ID.
Parameters for the API method call.
Response
Version of the JSON-RPC protocol, should be 2.0.
The request identifier.
Result of the API call.
Was this page helpful?