getConfirmedTransaction - Solana

getConfirmedTransaction. Retrieves detailed information about a specific confirmed transaction

getConfirmedTransaction - solana [Value: 38CU]
Retrieves information about a specific confirmed transaction
Use cases

Use cases

  • Verify the details of specific Solana transactions
  • Analyze transaction data for detailed reporting
  • Debugging and troubleshooting issues in transaction processes
Constraints

Constraints

  • Limited to confirmed Solana transactions only
  • API call frequency restrictions may apply
  • Possible delays in fetching transaction details
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl https://solana.drpc.org \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc": "2.0","id": 1,"method": "getConfirmedTransaction","params": ["3Pdh1xgS7HYXcPquN1JQQXs8C6Tn2ZTkHg86wXMwDEEnJxVVZsE3WgxHSx258boUtHcMVkKCGbT9dYWWfk7CWV2m","json"]}'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "result": {
    "slot": 94101948,
    "blockTime": 1625247600,
    "transaction": {
      "signatures": [
        "3Pdh1xgS7HYXcPquN1JQQXs8C6Tn2ZTkHg86wXMwDEEnJxVVZsE3WgxHSx258boUtHcMVkKCGbT9dYWWfk7CWV2m"
      ],
      "message": {
        "accountKeys": [
          "F5qT2...3yY",
          "D8Vn4Xo...3Xx"
        ],
        "header": {
          "numRequiredSignatures": 1,
          "numReadonlySignedAccounts": 0,
          "numReadonlyUnsignedAccounts": 1
        },
        "instructions": [
          {
            "accounts": [0, 1],
            "data": "3Bxs2V...2c3",
            "programIdIndex": 2
          }
        ],
        "recentBlockhash": "5mzZf8yd1Xe5GphbxxbBYKfyF2U2dHPuZbggyrB4GnNm"
      }
    },
    "meta": {
      "err": null,
      "fee": 5000,
      "preBalances": [1000005000, 0],
      "postBalances": [1000000000, 5000000],
      "preTokenBalances": [],
      "postTokenBalances": [],
      "logMessages": [],
      "innerInstructions": [],
      "loadedAddresses": {
        "readonly": [],
        "writable": []
      }
    }
  },
  "id": 1
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersarray
array
tx_sigstring
The transaction signature encoded in base-58.
encodingstring
(Default: json) The format for the transaction data. Possible values are "json", "jsonParsed", "base58" (slow), or "base64".
commitmentstring
The level of commitment required for the query
  • finalized - The node will query the most recent block confirmed by 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 supermajority of the cluster

Response

200
Contains detailed information about the account

Response params

object
idinteger
jsonrpcstring
resultstring
object
blockHeightinteger
The height of the block in the blockchain
blockTimeint64
The timestamp of the block. null indicates that the time is not available.
blockhashstring
The unique identifier (hash) of the block.
parentSlotinteger
The slot number of the parent block.
previousBlockhashstring
The hash of the previous block in the chain.
transactionsarray_of_objects
A list of transactions included in the block.
object
metaobject
Metadata about the transaction
object
errobject
Error information, null if no error.
feeuint64
Transaction fee in lamports.
innerInstructionsarray
List of inner instructions.
logMessagesarray
Log messages from the transaction execution.
postBalancesarray
Balances of accounts after the transaction.
postTokenBalancesarray
Token balances of accounts after the transaction
preBalancesarray
TBalances of accounts before the transaction.
preTokenBalancesarray
Token balances of accounts before the transaction
statusarray
loadedAddressesobject
Addresses loaded from address lookup tables for the transaction. This is undefined if maxSupportedTransactionVersion was not specified in the request parameters.
object
writablearray_of_strings
readonlyarray_of_strings
transactionobject
Details of the transaction
object
messagestring
Transaction message.
object
accountKeysarray_of_strings
Array of public keys involved.
headerobject
Transaction header
object
numRequiredSignaturesnumber
Number of required signatures.
numReadonlySignedAccountsnumber
Number of read-only signed accounts.
numReadonlyUnsignedAccountsnumber
Number of read-only unsigned accounts.
recentBlockhashnumber
Blockhash used for the transaction.
instructionsarray
Array of instruction objects.
object
accountsarray_of_integers
Indices of accounts involved.
datastring
Instruction data in specified format
programIdIndexstring
Index of the program ID in accountKeys
stackHeightstring
The current depth of the execution stack
signaturesarray_of_strings
List of signatures for the transaction.
rewardsboolean
Indicates whether to include the rewards array
object
pubkeystring
The public key of the account that received the reward, encoded in base-58.
lamportsinteger
The number of lamports (i64) credited or debited to the account as a reward.
postBalanceinteger
The account's balance in lamports (u64) after the reward was applied.
rewardTypestring
The type of reward received. Possible values are "fee", "rent", "voting", and "staking".
commissioninteger
The commission taken by the vote account when the reward was credited. This is only present for voting and staking rewards.