GetBlockByLatestNum

Query the latest N blocks from the chain head, useful for near-real-time block synchronization.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Returned blocks may not be solidified, so do not use this API for final-state confirmation.

For deterministic backfills, prefer range-based scanning with GetBlockByLimitNext and persist the last processed block number.


Related resources

Body Params
int32

Number of most recent blocks to retrieve. Example: 5

Responses

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json