Solana Tracker
Solana RPC/Methods

getBlockProduction RPC Method

Description

Returns recent block production information from the current or previous epoch.

Parameters

  1. object (array) - The configuration object with the following fields:
    • commitment (string, optional) - The level of commitment required for the query. Options:
      • finalized - The node will query the most recent block confirmed by the supermajority of the cluster as having reached maximum lockout, meaning the cluster has recognized this block as finalized.
      • confirmed - The node will query the most recent block that has been voted on by the supermajority of the cluster.
      • processed - The node will query its most recent block. Note that the block may not be complete.
    • range (array, optional) - The slot range to return block production for. If not provided, defaults to the current epoch:
      • firstSlot (integer) - The first slot to return block production information for (inclusive).
      • lastSlot (integer, optional) - The last slot to return block production information for (inclusive). If not provided, defaults to the highest slot.
    • identity (string, optional) - Filters results to this validator identity, encoded in base-58.

Returns

  • result - A custom object with the following fields:
    • context - Additional context for retrieving block production information:
      • apiVersion - The API version.
      • slot - The slot number for which block production information is retrieved.
    • value - Information about block production in the specified slot range:
      • byIdentity - A dictionary of validator identities (base-58 encoded strings). Each value is a two-element array containing the number of leader slots and the number of blocks produced.
      • range - The block production slot range:
        • firstSlot - The first slot of the block production information (inclusive).
        • lastSlot - The last slot of the block production information (inclusive).

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":"getBlockProduction"}'

On this page