Solana Tracker
Solana RPC/Methods

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

  1. tx_sig (string) - The transaction signature, encoded as a base-58 string.
  2. 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 be null):
      • err - Error code if the transaction failed, or null 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 a TransactionError.
    • slot - The slot number of the block, encoded as a u64 integer.
    • transaction - Transaction object (format depends on encoding):
      • 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 in accountKeys.
          • stackHeight - Execution stack depth.
        • recentBlockhash - Recent block hash for the cluster.
      • signatures - Array of signature strings.

Code Examples

curl "https://rpc-mainnet.solanatracker.io/?api_key=YOUR_API_KEY_HERE" \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc": "2.0","id": 1,"method": "getConfirmedTransaction","params": ["3Pdh1xgS7HYXcPquN1JQQXs8C6Tn2ZTkHg86wXMwDEEnJxVVZsE3WgxHSx258boUtHcMVkKCGbT9dYWWfk7CWV2m","json"]}'

On this page