<u64>
- a slot integer denoting the target block number <object>
- (optional) Config object:encoding:
(optional) <string> - data encoding for each returned transaction"json"
(Default), "jsonParsed"
, "base58"
(slow), "base64"
]
"jsonParsed"
encoding attempts to use program-specific parsers to make the transaction.message.instructions
list more human-readable; if a parser cannot be found, the instruction falls back to default JSON. transactionDetails:
(optional) <string> - level of transaction detail to return
Accepts one of the following strings:
["full"
(Default), "signatures"
, or "none"
] rewards:
(optional) bool - whether to populate the rewards
array. true
(Default)commitment:
(optional) Configures the commitment level of the blocks queried
Accepts one of the following strings: ["finalized"
, "confirmed"
, "processed"]
For more info, refer to this doc.maxSupportedTransactionVersion:
(optional) <number> - sets the maximum transaction version. maxSupportedTransactionVersion:
you cannot query blocks that contain a transaction with a higher version.<object>
- Objectblockhash:
< base-58 encoded string> - blockhash of a given blockpreviousBlockhash:
< base-58 encoded string> - the blockhash of this block's parent. If the parent block is not available due to ledger cleanup, this field will return "11111111111111111111111111111111"
parentSlot:
<u64> - the slot index of this block's parenttransactions:
<JSON array> - transaction details when queried with the "full"
flag under transactionDetails
transaction:
<object|[string,encoding]> - encoded transaction object meta:
<object> - transaction status metadata object, containing null
or:err:
<object | null> - If transaction failed, error messaage. If transaction succeeded null
fee:
<u64> - fee for this transaction preBalances:
<array of u64s> - account balances from before the transaction was processedpostBalances:
<array of u64s> - account balances after the transaction was processedinnerInstructions:
<array|null> - List of inner instructions
null
if not enabled during this transactionpreTokenBalances:
<array|undefined> - List of token balances from before the transaction was processed or
Undefined if token balance recording was not yet enabled during this transactionpostTokenBalances:
<array|undefined> - List of token balances from after the transaction was processed
Undefined if token balance recording was not yet enabled during this transactionlogMessages:
<array|null> - array of string log messages
null
if log message recording was not enabled during this transactionloadedAddresses:
<object|undefined> - Transaction addresses loaded from address lookup tables. Undefined if maxSupportedTransactionVersion
was not set in request params.writable:
<array[string base-58 encoded addresses]> - Ordered list addresses for writable loaded accountsreadonly:
<array[string base-58 encoded addresses]> - Ordered list addresses for read only loaded accountsversion:
<"legacy"|number|undefined> - Transaction version.
Undefined if maxSupportedTransactionVersion
is not set in request params.signatures:
<array of strings> - present if "signatures" are requested for transaction details corresponding to the transaction order in the blockrewards:
<array of JSON objects> - Object present if rewards are requestedpubkey:
<base-58 encoded string> - The public key of the account that received the rewardlamports:
<i64>- number of reward lamports credited or debited by the account, as a i64postBalance:
<u64> - account balance in lamports after the reward was appliedrewardType:
<string|undefined> - type of reward: ["fee"
, "rent"
, "voting"
, "staking"
]commission:
<u8|undefined> - vote account commission when the reward was credited, only present for voting and staking rewardsblockTime:
<i64 | null> - estimated production time, as Unix timestamp (seconds since the Unix epoch). null if not availableblockHeight:
<u64 | null> - the number of blocks beneath this block<null>
- if the specified block is not confirmed