post https://nd-326-444-187.p2pify.com/9de47db917d4f69168e3fed02217d15b/
Solana getBlocks
method
getBlocks
methodThe 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 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.endSlot
— (optional) the end slot of the range. If not provided, the method will return all confirmed blocks from thestartSlot
to the latest block.
Response
value
— an array of confirmed block heights within the specified range.
Use case
A practical use case for getBlocks
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.
Try the getBlocks
RPC method yourself
getBlocks
RPC method yourself