Skip to main content

getBlockCommitment RPC Method

Returns commitment for particular block.

Updated on
Dec 7, 2023

getBlockCommitment RPC Method

Parameters

block number
integer
REQUIRED
The block number identified by the slot

Returns

result
The custom object with the following field
commitment
The commitment values for the block. It could be either:
null
Null if the block is unknown
array
An array of u64 integers logging the amount of cluster stake in lamports that has voted on the block at each depth from 0 to MAX_LOCKOUT_HISTORY + 1
totalStake
The total number of lamports being used by validators to participate in the block production and voting process
Request
1
curl https://docs-demo.solana-mainnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"jsonrpc":"2.0","id":1, "method":"getBlockCommitment","params":[94101948]}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free