Get a transaction
One transaction by signature, fully parsed.
GET /transactions/{signature}Returns a single transaction in the same parsed shape as
transaction history items, plus program logs.
Versioned transactions, address lookup tables, and legacy transactions are all
handled automatically — there is no maxSupportedTransactionVersion footgun
here.
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
signature | path | string | Yes | The transaction's base58 signature. |
raw | query | boolean | No | Default false. When true, adds a raw field with the untouched RPC response for advanced use. |
Example
curl https://api.sarg.am/v1/solana/transactions/5h6xBEauJ3PK6SWCZ1PGjBvj8vDdWG3KpwATGy1ARAXFSDwt8GFXM7W5Ncn16wmqokgpiKRLuS83KUxyZyv2sUYv \
-H "Authorization: Bearer $MAINLY_API_KEY"{
"signature": "5h6xBEauJ3PK6SWCZ1PGjBvj8vDdWG3KpwATGy1ARAXFSDwt8GFXM7W5Ncn16wmqokgpiKRLuS83KUxyZyv2sUYv",
"timestamp": "2026-08-03T18:22:41Z",
"slot": 341197053,
"status": "success",
"confirmation": "finalized",
"type": "swap",
"source": "jupiter",
"description": "Swapped 1.5 SOL for 225.5 USDC on Jupiter",
"fee": { "lamports": 5000, "sol": 0.000005 },
"signers": ["9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM"],
"transfers": {
"sol": [
{ "from": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM", "to": "JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4", "lamports": 1500000000, "sol": 1.5 }
],
"tokens": [
{
"mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"symbol": "USDC",
"from": "JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4",
"to": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM",
"amount": { "raw": "225500000", "decimals": 6, "ui": 225.5, "uiString": "225.5" }
}
]
},
"logs": [
"Program JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4 invoke [1]",
"Program JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4 success"
]
}Response fields
Same as history items, plus:
| Field | Type | Description |
|---|---|---|
confirmation | string | Level this transaction has reached: confirmed or finalized. |
signers | array | Addresses that signed the transaction. |
logs | array | Program log output — your first stop when debugging a failed transaction. |
Errors
code | When |
|---|---|
invalid_signature | The path parameter isn't a valid signature. |
not_found | No transaction with this signature (or it hasn't reached confirmed yet — poll status for in-flight transactions). |
Under the hood
Replaces getTransaction (with its maxSupportedTransactionVersion,
encoding, and commitment quirks) plus instruction parsing and balance-diff
analysis.