Source
get_blockParameters
Slot number.
Configuration object. For backwards compatibility, this parameter also accepts a
bare encoding string, but prefer the object form.When this parameter is an object, it may contain the following fields:
Passing a bare encoding string as the second positional parameter is
deprecated. Use the configuration object instead.
Show propertiesHide properties
Show propertiesHide properties
Values:
This method does not accept
confirmed, finalizedSolana RPC uses the following commitment levels:| Value | Description |
|---|---|
processed | Return data from the highest slot this node has processed. This is the newest view, but the block can still be skipped. |
confirmed | Return data from the same slot as finalized. Kept for compatibility and planned for removal in a later release. |
finalized | Return data from the highest slot with a finalization certificate, from votes by 80% of stake in one round or 60% of stake in each of two rounds. This is the strongest commitment level. |
processed.Values:
For
binary, base58, base64, json, jsonParsedEncoding format for each returned transaction.| Encoding | Transaction format | Notes |
|---|---|---|
json | JSON object | Default. Returns parsed transaction with message and signatures |
jsonParsed | JSON object | Uses program-specific parsers for transaction.message.instructions. Falls back to standard JSON fields (accounts, data, programIdIndex) if no parser found |
base64 | [data, "base64"] | Base64 encoded binary transaction |
base58 | [data, "base58"] | Slow |
binary | [data, "base58"] | ⚠️ Deprecated. Legacy alias for base58, retained for backwards compatibility |
jsonParsed, instruction entries use one of two stable outer shapes:
{program, programId, parsed, stackHeight} when the RPC node can parse the
instruction, or {programId, accounts, data, stackHeight} when it falls back to
a partially decoded form. The nested parsed payload remains program-specific.If you use the deprecated shorthand encoding form, pass one of these encoding
strings directly.For the shared JSON structures used by json and jsonParsed responses, see
Transactions,
Parsed Accounts,
Inner Instructions, and
Address Table Lookups.Values:
full, accounts, signatures, noneLevel of transaction detail to return.- If
accountsis requested, the response still includestransactions, but eachtransactions[].transactionobject only containssignaturesand an annotatedaccountKeyslist. - In
accountsmode,transactions[].metais limited tofee,err,status,preBalances,postBalances,preTokenBalances,postTokenBalances, andrewards. - If
signaturesis requested, the response omitstransactionsand returns only thesignaturesarray for the block. - If
noneis requested, the response omits bothtransactionsandsignatures.
Values:
0, 1The highest transaction version to return. Set it to 0 to fetch legacy and v0
transactions. Set it to 1 to also fetch
v1 transactions —
the value must be the JSON integer 1, not the string "1".A single transaction above the requested version fails the entire call with
error -32015 — there is no partial result. Requests with transactionDetails
of signatures or none never fail on version; accounts and full can.If you omit this parameter, only legacy transactions are allowed — any block
containing a versioned transaction results in an error.Values:
true, falseWhether to populate the rewards array. If parameter not provided, the default
includes rewards.Result
If specified block is not confirmed result will be
null. Otherwise, an object
containing:This top-level response uses the shared
Confirmed Blocks structure.Show propertiesHide properties
Show propertiesHide properties
The number of blocks beneath this block.
Estimated production time, as Unix timestamp (seconds since the Unix epoch).
null if not available.The blockhash of this block, as base-58 encoded string
The slot index of this block’s parent
The blockhash of this block’s parent, as base-58 encoded string; if the parent
block is not available due to ledger cleanup, this field will return
“11111111111111111111111111111111”
Present if
transactionDetails is "full" or "accounts"; an array of JSON
objects containing:| Field | Type | Description |
|---|---|---|
transaction | object | string | [string, encoding] | Encoded transaction payload. For transactionDetails: "full", this uses the shared Encoded Transaction Responses structure. For transactionDetails: "accounts", this uses Accounts Only Transaction Responses. |
meta | object | null | Transaction status metadata, or null if metadata is unavailable. For transactionDetails: "full", this uses Transaction Status Metadata. For transactionDetails: "accounts", current Solana RPC responses return a simplified subset of that structure. |
version | "legacy" | number | Transaction version. This field is omitted if maxSupportedTransactionVersion is not set in the request params. |
transactions[].transaction fields when transactionDetails is
"accounts"| Field | Type | Description |
|---|---|---|
signatures | array | Transaction signatures in wire order. |
accountKeys | array | Objects containing the listed pubkey, signer, and writable metadata for each transaction account. |
transactions[].transaction.accountKeys[] fields when transactionDetails is
"accounts"| Field | Type | Description |
|---|---|---|
pubkey | string | Account address, as a base-58 encoded string. |
signer | bool | Whether this account signed the transaction. |
writable | bool | Whether the transaction marks this account writable. |
source | string | null | Source of the account key. When present, the value is transaction or lookupTable. |
transactions[].meta fields when transactionDetails is "accounts"| Field | Type | Description |
|---|---|---|
err | object | string | null | Transaction error. null indicates success. |
status | object | Deprecated status object that mirrors err. It is "Ok": <null> for success or "Err": <ERR> for failure. |
fee | u64 | Fee charged for the transaction, in lamports. |
preBalances | array | Lamport balances before execution, indexed to transaction.accountKeys. |
postBalances | array | Lamport balances after execution, indexed to transaction.accountKeys. |
preTokenBalances | array | null | Token balances before execution. Each element uses Token Balances. |
postTokenBalances | array | null | Token balances after execution. Each element uses Token Balances. |
rewards | array | null | Rewards applied while processing the transaction. Each element uses Rewards. |
transactions[].meta.err object form| Field | Type | Description |
|---|---|---|
<variantName> | array | object | string | null | Transaction error variant payload. Most variants serialize as strings. InstructionError serializes as [instructionIndex, instructionError]. |
token balance fields| Field | Type | Description |
|---|---|---|
accountIndex | u8 | Index into the transaction account list for the token account whose balance is reported. |
mint | string | Token mint pubkey, as a base-58 encoded string. |
uiTokenAmount | object | Token amount object with raw and decimal-scaled representations. |
owner | string | Token account owner pubkey, when the validator recorded it. This field may be omitted. |
programId | string | SPL Token program pubkey for this account, when the validator recorded it. This field may be omitted. |
token balance.uiTokenAmount fields| Field | Type | Description |
|---|---|---|
uiAmount | number | null | Decimal-scaled amount as a floating-point number. Deprecated in favor of uiAmountString. |
decimals | u8 | Number of decimal places configured on the mint. |
amount | string | Raw token amount, as a base-10 integer string. |
uiAmountString | string | Decimal-scaled amount as a string. |
Present if “signatures” transaction details are requested; an array of signature
strings, corresponding to the transaction order in the block.
Present if rewards are requested; an array of reward objects with the following
fields:This field uses the shared Rewards
structure.
| Field | Type | Description |
|---|---|---|
pubkey | string | Rewarded account pubkey, as a base-58 encoded string. |
lamports | i64 | Lamports credited or debited by this reward entry. |
postBalance | u64 | Account balance after the reward was applied. |
rewardType | string | null | Reward category. When present, the value is Fee, Rent, Voting, or Staking. |
commission | u8 | null | Vote-account commission at the time of the reward. Present only for voting and staking rewards. |
The number of reward partitions for this block when it uses partitioned
rewards. Omitted otherwise.