getBlockCommitment | Solana

Solana getBlockCommitment method

The Solana getBlockCommitment method returns the commitment information for a given block.

This method provides detailed information about the number of cluster nodes that have voted on the block, and the total stake of those nodes. It is useful for determining the level of consensus for a block in the network.

👍

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • block — the height of the block to retrieve commitment information for.

Response

  • value — the block commitment information:
    • commitment — an array of 32 integers representing the commitment for the block.
    • totalStake — the total stake of all nodes that have voted on the block.

Use case

A practical use case for getBlockCommitment is to determine the level of consensus for a block in the network. This can be useful for block explorers, wallets, or other applications that need to display or make use of this information.

Try the getBlockCommitment RPC method yourself

Language
Click Try It! to start a request and see the response here!