OpenInfra.sh is now live - Solana infrastructure, included with every server. LEARN MORE HERE >

OpenInfra.shopeninfra.sh

getTransaction

Returns full transaction details including logs, inner instructions, and pre/post balances.

Parameters

ParameterTypeDescription
signaturestringBase58 transaction signature (required)
encodingstringbase58 | base64 | json | jsonParsed (default: json)
commitmentstringconfirmed | finalized (processed not supported)
maxSupportedTransactionVersionnumberSet to 0 to support versioned transactions

Request

{  "jsonrpc": "2.0",  "id": 1,  "method": "getTransaction",  "params": [    "5hEk7P...<base58 signature>",    {      "encoding": "jsonParsed",      "commitment": "confirmed",      "maxSupportedTransactionVersion": 0    }  ]}

Response (excerpt)

{  "jsonrpc": "2.0",  "id": 1,  "result": {    "slot": 312449201,    "blockTime": 1718200345,    "transaction": {      "message": { /* ... */ },      "signatures": ["5hEk7P..."]    },    "meta": {      "err": null,      "fee": 5000,      "preBalances":  [1000000000, 2039280, 1],      "postBalances": [999990000,  2039280, 1],      "logMessages": [        "Program TokenkegQfe... invoke [1]",        "Program log: Transfer 100000000",        "Program TokenkegQfe... success"      ],      "innerInstructions": [ /* ... */ ]    }  }}

Returns null when the transaction does not exist or has not yet reached the requested commitment level.

Transaction history

Solana nodes prune transaction history. OpenInfra nodes retain extended history, but for deep historical queries consider the dedicated history archive endpoint at https://archive.openinfra.sh.