Skip to main content

0.05 credits per call

getConfirmedBlock on Solana: Returns the contents of a confirmed block (deprecated).
This method is deprecated in the upstream RPC API and may be removed by node operators. Use getBlock instead.

Endpoint

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

Parameters

NameTypeRequiredDescriptionExample
slotu64yesSlot number to fetch.372877175
configobjectno{encoding?, transactionDetails?, rewards?, commitment?}.{"encoding":"json","transactionDetails":"full","rewards":true}

Returns

object | null: Block object, or null if not confirmed.
{"blockhash":"5y...","parentSlot":372877174,"transactions":[]}

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": "getConfirmedBlock",
    "params": [372877175, {"encoding":"json","transactionDetails":"full","rewards":true}]
  }'

Errors

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