OpenInfra.sh is now live - Solana infrastructure, included with every server. LEARN MORE HERE >

OpenInfra.shopeninfra.sh

getBlockCommitment

Returns the stake-weighted commitment information recorded for a slot.

Request

{  "jsonrpc": "2.0",  "id": 1,  "method": "getBlockCommitment",  "params": [    5  ]}

Parameters

ParameterTypeRequiredDescription
slot numberu64YesSlot to query.

Response

{  "jsonrpc": "2.0",  "result": {    "commitment": [      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,      0, 0, 0, 0, 0, 10, 32    ],    "totalStake": 42  },  "id": 1}
FieldTypeDescription
commitmentarray | nullArray of stake totals (in lamports) that voted on the block at each lockout depth from 0 through MAX_LOCKOUT_HISTORY. null if the block is unknown.
totalStakeu64Total active stake, in lamports, of the current epoch.

When commitment is nullthe node has no record of the requested slot — either it was skipped, has not yet been processed, or predates the node's ledger history.