Solana Tracker
Solana RPC/Methods

getBlockCommitment RPC Method

Description

Returns commitment for a particular block.

Parameters

  1. block number (integer) - The block number identified by the slot, encoded as a u64 (64-bit unsigned integer). Required.

Returns

  • result - A custom object with the following fields:
    • commitment - The commitment values for the block:
      • 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, encoded as a u64 integer.

Code Examples

curl "https://rpc-mainnet.solanatracker.io/?api_key=YOUR_API_KEY_HERE" \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","id":1, "method":"getBlockCommitment","params":[94101948]}'

On this page