getConfirmedBlocks - Solana

getConfirmedBlocks. Enables developers to obtain a list of confirmed blocks within a specified range

getConfirmedBlocks - solana [Value: 10CU]
The method in Solana enables to obtain a list of confirmed blocks
Use cases

Use cases

  • Retrieve a range of confirmed block numbers for analysis
  • Monitor a sequence of blocks for transaction tracking
  • Analyze block confirmations over a specific range
Constraints

Constraints

  • Requires valid block number range
  • Network delays can affect data retrieval
  • High-frequency requests may lead to rate limiting
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl https://solana.drpc.org \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc": "2.0","id":1,"method":"getConfirmedBlocks","params":[94101945, 94101948]}'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "result": [
    94101945,
    94101946,
    94101947,
    94101948
  ],
  "id": 1
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersarray
array
start_slotstring
The start slot number represented as a 64-bit unsigned integer (u64).
end_slotstring
The end slot number represented as a 64-bit unsigned integer (u64).
objectarray
The configuration object containing the following fields:
array
commitmentstring
The level of commitment required for the query
  • finalized - The node will query the most recent block confirmed by supermajority of the cluster as having reached maximum lockout, meaning the cluster has recognized this block as finalized
  • confirmed - The node will query the most recent block that has been voted on by supermajority of the cluster
  • processed - The node will query its most recent block. Note that the block may not be complete
encodingobject
(Default: json) The encoding format for account data. Options include "base58" (slow), "base64", "base64+zstd", or "jsonParsed"
transactionDetailsstring
(Default: full) Specifies the level of transaction details in the response. Options include "full", "signatures", and "none".
rewardsboolean
(Default: true) Determines whether to include the rewards array in the response

Response

200
An array listing the confirmed block numbers between start_slot and end_slot

Response params

object
idinteger
jsonrpcstring
resultarray_of_integers
If provided, or up to the latest confirmed block. The range can span up to 500,000 slots.