Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
num
— the number of latest blocks to retrieve (integer)
Response
Returns an array of the most recent block objects, each containing:blockID
— the block hashblock_header
— block header informationtransactions
— array of transactions in each blockblockSize
— size of each block in bytestimestamp
— block creation timestampsnumber
— block numbers
Use case
Thewalletsolidity/getblockbylatestnum
method is used for:
- Retrieving the most recent confirmed blocks from solidified blockchain state
- Monitoring latest finalized blockchain activity
- Building applications that display recent reliable block data
- Implementing real-time dashboards with confirmed block information
Body
application/json
Number of latest blocks to retrieve
Required range:
1 <= x <= 100
Example:
5
Response
200 - application/json
Array of the latest solidified blocks