getBlocks
Solana node API
getBlocks | Solana
The Solana getBlocks method returns a list of confirmed blocks within a specified slot range. Available on Solana via Chainstack JSON-RPC nodes.
POST
getBlocks
Documentation Index
Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
Use this file to discover all available pages before exploring further.
Range limit: maximum 500,000 blocks per request. Archive data: this method supports fetching historical data on Global Nodes. See Solana method limits.
Solana getBlocks method
The Solana getBlocks method returns a list of confirmed blocks within a specified slot range.
This method provides a list of block heights that have been confirmed by the network. It is useful for retrieving a range 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.endSlot— (optional) the end slot of the range. If not provided, the method will return all confirmed blocks from thestartSlotto the latest block.
Response
value— an array of confirmed block heights within the specified range.
Use case
A practical use case forgetBlocks is to retrieve a range 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