post https://nd-326-444-187.p2pify.com/9de47db917d4f69168e3fed02217d15b/
Solana getBlocksWithLimit
method
getBlocksWithLimit
methodThe Solana getBlocksWithLimit
method returns a list of confirmed blocks starting from a specified slot for a maximum limit.
This method provides a list of block heights that have been confirmed by the network. It is useful for retrieving a specific number of blocks for analysis or display.
Get you own node endpoint today
Start 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
startSlot
β the start slot of the range.limit
β the maximum number of blocks to return.
Response
value
β an array of confirmed block heights starting from thestartSlot
up to the specifiedlimit
.
Use case
A practical use case for getBlocksWithLimit
is to retrieve a specific number of confirmed blocks for analysis or display. This can be useful for block explorers, wallets, or other applications that need to display or make use of this information.
Try the getBlocksWithLimit
RPC method yourself
getBlocksWithLimit
RPC method yourself