getBlockCommitment
Returns the stake-weighted commitment information recorded for a slot.
Request
{ "jsonrpc": "2.0", "id": 1, "method": "getBlockCommitment", "params": [ 5 ]}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| slot number | u64 | Yes | Slot 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}| Field | Type | Description |
|---|---|---|
| commitment | array | null | Array 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. |
| totalStake | u64 | Total 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.