0.05 credits per call
getBlock on Solana: Returns identity and transaction information for a confirmed block.
Endpoint
Authorization: Bearer <GOLDRUSH_API_KEY>. See authentication.
Parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
slot | u64 | yes | Slot number to fetch, as a u64 integer. | 372877175 |
config | object | no | {commitment?, encoding?, transactionDetails?, maxSupportedTransactionVersion?, rewards?}. encoding is one of json, jsonParsed, base58, base64. | {"encoding":"jsonParsed","maxSupportedTransactionVersion":0,"transactionDetails":"full","rewards":false} |
Returns
object | null: Block object with blockhash, previousBlockhash, parentSlot, transactions, rewards, blockTime, blockHeight; null if the block is not confirmed.
Examples
Errors
| Code | Message |
|---|---|
-32004 | Block not available for the requested slot. |
-32007 | Slot was skipped, or missing due to ledger jump to recent snapshot. |
-32600 invalid request, -32601 method not found, -32602 invalid params.