TriportRPC

getTransaction

Last updated:

`getTransaction` fetches a single confirmed transaction by its base-58 signature and returns its decoded contents along with execution metadata — fees, balance changes, inner instructions, log output, and compute units consumed.

Use it to inspect the outcome of a transaction you have already submitted (for example after `sendTransaction`), to confirm whether it succeeded, or to render the details of any historical transaction. The method returns `null` when no confirmed transaction matches the supplied signature — either because the signature is unknown to the cluster or because it has not yet reached the requested commitment.

Versioned transactions (those using Address Lookup Tables) are only returned when you pass `maxSupportedTransactionVersion`. If you omit it and the transaction is a versioned one, the request fails rather than returning the transaction.

Parameters

getTransaction parameters
NameTypeRequiredDescription
signatureSignatureYes
configGetTransactionConfigNo

Returns

getTransaction return value
FieldType
resultobject

Examples

curl https://<your-endpoint>/ \
  -X POST -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"getTransaction","params":["<signature>","<config>"]}'
const res = await fetch("https://<your-endpoint>/", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
  "id": 1,
  "method": "getTransaction",
  "params": [
    "<signature>",
    "<config>"
  ],
  "jsonrpc": "2.0"
}),
});
const data = await res.json();
import requests
resp = requests.post("https://<your-endpoint>/", json={"id":1,"method":"getTransaction","params":["<signature>","<config>"],"jsonrpc":"2.0"})
print(resp.json())

Usage

  1. Transport: HTTP (JSON-RPC).
  2. Networks: mainnet, devnet, testnet.
  3. Credit cost: 1 per call.

FAQ

What does getTransaction do?
Returns the full details of a confirmed Solana transaction, looked up by its signature.
How many credits does getTransaction cost?
getTransaction costs 1 credit(s) per call on Triport by default.
Is getTransaction available over WebSocket?
getTransaction is an HTTP JSON-RPC method.