Skip to main content
POST
/
getTransaction
curl --request POST \
  --url https://rpc-mainnet.solanatracker.io/ \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "db16f277-1a22-41ff-9f85-f37e2cd77900",
  "method": "getTransaction",
  "params": [
    "5XXN7L7cMGYTvckcaNeTXxhJgxeT1JTa9auwa2yXCFR1NXzwXrXNAWx4SaAw48S5186VzvXiXVEsWJu1WFR5AAmg",
    {
      "commitment": "finalized"
    }
  ]
}'
{
  "jsonrpc": "2.0",
  "id": "db16f277-1a22-41ff-9f85-f37e2cd77900",
  "result": {
    "slot": 235157119,
    "transaction": {
      "message": {
        "accountKeys": [
          "121k79rjdDy4QRuSykdG1Dw7pYCZSzKYrvs7RDKZTf1h"
        ],
        "header": {
          "numReadonlySignedAccounts": 0,
          "numReadonlyUnsignedAccounts": 3,
          "numRequiredSignatures": 1
        },
        "instructions": [
          {
            "accounts": [
              1
            ],
            "data": "37u9WtQpcm6ULa3WRQHmj49EPs4if7o9f1jSRVZpm2dvihR9C8jY4NqEwXUbLwx15HBSNcP1",
            "programIdIndex": 4
          }
        ],
        "recentBlockhash": "mfcyqEXB3DnHXki6KjjmZck6YjmZLvpAByy2fj4nh6B"
      },
      "signatures": [
        "5XXN7L7cMGYTvckcaNeTXxhJgxeT1JTa9auwa2yXCFR1NXzwXrXNAWx4SaAw48S5186VzvXiXVEsWJu1WFR5AAmg"
      ]
    },
    "meta": {
      "err": null,
      "fee": 5000,
      "innerInstructions": [
        {}
      ]
    }
  }
}

Authorizations

api_key
string
query
required

Body

application/json
jsonrpc
enum<string>
default:2.0
required

The JSON-RPC protocol version.

Available options:
2.0
Example:

"2.0"

id
string
default:1
required

A unique identifier for the request.

Example:

"1"

method
enum<string>
default:getTransaction
required

The name of the RPC method to invoke.

Available options:
getTransaction
Example:

"getTransaction"

params
array
required

Parameters for querying a Solana transaction by signature.

Response

200 - application/json

Successfully retrieved the detailed Solana transaction data.

jsonrpc
enum<string>

The JSON-RPC protocol version.

Available options:
2.0
Example:

"2.0"

id
string

Identifier matching the request.

Example:

"1"

result
object

Complete Solana transaction details including execution data.