Parameters
- tx_sigstring
The transaction signature as base-58 encoded string
- objectarray
The configuration object with the following fields:
- encodingstring
The encoding format for account data. It can be jsonParsed or n/a if using JS getParsedTransaction
- commitmentstring
The level of commitment required for the query. The options include:
- finalizedstring
The node will query the most recent block the cluster has recognized as finalized
- confirmedstring
The node will query the most recent block that has been voted on by supermajority of the cluster
- processedstring
It is not supported for this method
- maxSupportedTransactionVersioninteger
The maximum transaction version to return, as a JSON integer. Set it to 1 to receive legacy, version 0, and version 1 transactions
- legacystring
The older transaction format with no additional benefit
Returns
- result
The result will be null if the specified transaction is not confirmed otherwise an object with the following fields:
- slot
The slot number in which the transaction was processed
- parsedTransactionobject
The parsed transaction object with the following fields:
- signaturesarray
An array of signatures on the transaction
- parsedMessage
The parsed message of the transaction
- accountKeysarray
An array of public keys involved in the transaction
- instructionsarray
An array of instructions that were executed in the block's transactions
- recentBlockhashstring
The recent blockhash from the transaction
- addressTableLookups
This field is omitted for legacy and version 1 transactions. An array of address lookups that were performed during the execution of transactions in the block
- transactionConfigobject
Version 1 transactions only. The compute and fee settings for the transaction
- priorityFeeinteger
The priority fee for the transaction, in lamports
- computeUnitLimitinteger
The maximum compute units the transaction may consume
- loadedAccountsDataSizeLimitinteger
The maximum total size in bytes of the account data the transaction may load
- heapSizeinteger
The requested heap size in bytes, or null when not set
- blockTime
The estimated production time, as Unix timestamp (seconds since the Unix epoch). It's null if not available
- meta
The transaction status metadata object with the following fields:
- err
Error code if the transaction failed or null if the transaction succeeds
- fee
The total fees paid by all transactions in the block encoded as u64 integer
- preBalances
An array of lamport balances for each account in the block before the transactions were processed
- postBalances
An array of lamport balances for each account in the block after the transactions were processed
- parsedInnerInstructions
List of inner instructions or omitted if inner instruction recording was not yet enabled during this transaction.
- preTokenBalances
An array of token balances for each token account in the block before the transactions were processed (omitted if inner instruction recording is not enabled)
- postTokenBalances
An array of token balances for each token account in the block after the transactions were processed (omitted if inner instruction recording is not enabled)
- logMessages
An array of strings containing any log messages generated by the block's transactions (omitted if inner instruction recording is not enabled)
- rewards
An object containing information about the rewards earned by the block's validators (only present if the rewards are requested). It has the following fields:
- pubkey
The public key of the account that received the award encoded as base-58 string
- lamports
The number of reward lamports credited or debited by the account
- postBalance
The account balance in lamports after the reward was applied
- rewardType
The type of reward. It could be fee, rent, voting, staking
- commission
The vote account commission when the reward was credited, only present for voting and staking rewards
- versionstring|integer
The transaction version, one of "legacy", 0, or 1