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
| Name | Type | Required | Description |
|---|---|---|---|
| signature | Signature | Yes | |
| config | GetTransactionConfig | No |
Returns
| Field | Type |
|---|---|
| result | object |
Examples
curl https://triport.io/sol \
-X POST -H 'Content-Type: application/json' \
-H 'Authorization: Bearer <api-key>' \
-d '{"id":1,"method":"getTransaction","params":["<signature>","<config>"],"jsonrpc":"2.0"}'const res = await fetch("https://triport.io/sol", {
method: "POST",
headers: { "Content-Type": "application/json", Authorization: "Bearer <api-key>" },
body: JSON.stringify({
"id": 1,
"method": "getTransaction",
"params": [
"<signature>",
"<config>"
],
"jsonrpc": "2.0"
}),
});
const data = await res.json();import requests
resp = requests.post(
"https://triport.io/sol",
headers={"Authorization": "Bearer <api-key>"},
json={"id":1,"method":"getTransaction","params":["<signature>","<config>"],"jsonrpc":"2.0"},
)
print(resp.json())Usage
- Transport: HTTP (JSON-RPC).
- Networks: mainnet, devnet, testnet.
- 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.