getConfirmedTransaction RPC Method
Description
Returns transaction details for a confirmed transaction.
Please note that this method is deprecated, no longer available on Devnet and Testnet, and will be removed from Mainnet soon. For a similar method, you can use Solana's getTransaction RPC method.
Parameters
tx_sig
(string) - The transaction signature, encoded as a base-58 string.object
(array) - The configuration object with the following fields:encoding
(string, optional) - (default:json
) The encoding format for the transaction data. Options:json
,jsonParsed
,base58
(slow),base64
.commitment
(string, optional) - (default:finalized
) The level of commitment required for the query. Options:finalized
- The node will query the most recent block confirmed by the supermajority of the cluster as having reached maximum lockout, meaning the cluster has recognized this block as finalized.confirmed
- The node will query the most recent block that has been voted on by the supermajority of the cluster.
Returns
result
-null
if the specified transaction is not confirmed; otherwise, an object with the following fields:blockTime
- The estimated production time, as a Unix timestamp (seconds since the Unix epoch).null
if not available.meta
- Transaction status metadata (can benull
):err
- Error code if the transaction failed, ornull
if it succeeded.fee
- Total fees paid, encoded as a u64 integer.innerInstructions
- Array of inner instruction objects (omitted if not enabled).loadedAddresses
- Array of base58-encoded public keys:readonly
- Accounts that are read-only.writable
- Accounts that are read and modified.
logMessages
- Array of log message strings (omitted if not enabled).postBalances
- Array of lamport balances after processing.postTokenBalances
- Array of token balances after processing (omitted if not enabled).preBalances
- Array of lamport balances before processing.preTokenBalances
- Array of token balances before processing (omitted if not enabled).rewards
- Reward information (if requested).status
- Transaction status:Ok
if successful,Err
if failed with aTransactionError
.
slot
- The slot number of the block, encoded as a u64 integer.transaction
- Transaction object (format depends onencoding
):message
- Core transaction data:accountKeys
- Array of base58-encoded public keys of involved accounts.header
- Signature and readonly account info:numReadonlySignedAccounts
- Number of readonly signed accounts.numReadonlyUnsignedAccounts
- Number of readonly unsigned accounts.numRequiredSignatures
- Number of required signatures.
instructions
- Array of executed instructions:accounts
- Array of base58-encoded public keys for the instruction.data
- Encoded instruction data string.programIdIndex
- Index of the program ID inaccountKeys
.stackHeight
- Execution stack depth.
recentBlockhash
- Recent block hash for the cluster.
signatures
- Array of signature strings.