getBlockCommitment RPC Method
Returns commitment for particular block
params
u64required
Block number, identified by Slot.
result
object
The result field will be a JSON object containing:
Request
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getBlockCommitment",> "params": [> 5> ]> }> '
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}
Request
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getBlockCommitment",> "params": [> 5> ]> }> '
params
u64required
Block number, identified by Slot.
result
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}
object
The result field will be a JSON object containing:
Is this page helpful?