Skip to main content

0.05 credits per call

getBlockProduction on Solana: Returns recent block production information for the current or a previous epoch.

Endpoint

https://rpc.goldrushdata.com/v1/solana-mainnet
Authenticate with Authorization: Bearer <GOLDRUSH_API_KEY>. See authentication.

Parameters

NameTypeRequiredDescriptionExample
configobjectno{commitment?, identity?, range?: {firstSlot, lastSlot?}}. identity filters to a single validator (base-58 pubkey).{"commitment":"finalized"}

Returns

object: {context, value: {byIdentity, range}} where byIdentity maps validator pubkey to [leaderSlots, blocksProduced].
{"context":{"slot":372877175},"value":{"byIdentity":{"Va1...":[40,38]},"range":{"firstSlot":372800000,"lastSlot":372877175}}}

Examples

curl https://rpc.goldrushdata.com/v1/solana-mainnet \
  -H "Authorization: Bearer $GOLDRUSH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getBlockProduction",
    "params": [{"commitment":"finalized"}]
  }'

Errors

Standard JSON-RPC errors: -32600 invalid request, -32601 method not found, -32602 invalid params.