getBlockCommitment - Solana

getBlockCommitment. Retrieves the commitment levels for a specific block

getBlockCommitment - solana [Value: 5CU]
Retrieves the commitment levels for a specific block
Use cases

Use cases

  • Check block commitment status for transaction finality
  • Monitor commitment levels for recent blocks to ensure security
  • Verify block inclusion in the blockchain for auditing purposes
Constraints

Constraints

  • Requires valid block number parameter
  • Network delays might affect timely data retrieval
  • High query volume can 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 --request POST \
     --url https://solana.drpc.org \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "getBlockCommitment",
  "params": [
    165768577
  ]
}
'
Copy
Response
200
{
  "id": 0,
  "jsonrpc": "string",
  "result": {
    "commitment": [
      0
    ],
    "totalStake": 0
  }
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersarray of integers
array of integers
blockNumberstring
The number of the block to retrieve commitment information for.

Response

200
Contains commitment information for the block

Response params

string
idinteger
jsonrpcstring
resultobject
string
commitmentarray_of_integers
The commitment level of the block.
totalStakeint64
The total stake of validators confirming the block.