getBlocksWithLimit
Solana node API
getBlocksWithLimit | Solana
The Solana getBlocksWithLimit method returns a list of confirmed blocks starting from a specified slot for a maximum limit. On Solana.
POST
getBlocksWithLimit
Range limit: maximum 500,000 blocks per request. Archive data: this method supports fetching historical data on Global Nodes. See Solana method limits.
Solana getBlocksWithLimit method
The 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 your 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
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 thestartSlotup to the specifiedlimit.
Use case
A practical use case forgetBlocksWithLimit 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.Last modified on May 18, 2026