getBlockCommitment
Returns commitment for particular block

Parameters

  • <u64> - a slot integer denoting the block number

Returns

  • <object>
    • commitment: array of u64 integers or <null> for unknown blocks
      • <array> - commitment, 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
    • totalStake - total active stake, in lamports, of the current epoch

Example

Request

cURL
1
curl --location --request POST 'https://solana-mainnet.g.alchemy.com/v2/demo' \
2
--header 'Content-Type: application/json' \
3
--data-raw '{"jsonrpc":"2.0","id":1, "method":"getBlockCommitment","params":[5]}'
Copied!

Response

1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"commitment": null,
5
"totalStake": 385145605723274688
6
},
7
"id": 1
8
}
Copied!