Solana RPC
getBlocksWithLimit
Returns a list of confirmed blocks starting at the given slot.
POST
getBlocksWithLimit
Request Parameters
number
Starting Solana slot number from which to begin retrieving the sequential block list.
number
Maximum number of sequential blocks to return (up to 500,000 blocks per request).
string
Finality level to query blocks at - either confirmed (optimistic confirmation) or finalized (full confirmation).
confirmedfinalized
Authorizations
Body
application/json
The JSON-RPC protocol version.
Available options:
2.0 Example:
"2.0"
A unique identifier for the request.
Example:
"1"
The name of the RPC method to invoke.
Available options:
getBlocksWithLimit Example:
"getBlocksWithLimit"
Request parameters for the method.
Response
Successfully retrieved confirmed blocks.