getBlockProduction | Solana

Solana getBlockProduction Method

The Solana getBlockProduction method returns the block production information.

This method provides detailed information about the number of blocks that have been produced, and the number of slots that have been skipped. It is useful for tracking the efficiency of the network and the performance of validators.

๐Ÿ‘

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

  • commitment โ€” (optional) the level of commitment desired:
    • processed โ€” the node has processed the block and the block may be on a fork.
    • confirmed โ€” the block is confirmed by the cluster as not being on a fork.
    • finalized โ€” the block is finalized by the cluster.

Response

  • value โ€” the block production information:
    • range โ€” the range of slots being considered.
    • totalSlots โ€” the total number of slots in the range.
    • totalBlocks โ€” the total number of blocks in the range.
    • totalSkippedSlots โ€” the total number of skipped slots in the range.

Use case

A practical use case for getBlockProduction is to track the efficiency of the network and the performance of validators. This can be useful for network monitoring tools or other applications that need to display or make use of this information.

Try the getBlockProduction RPC method yourself

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