solana-tx-parse
Any Solana transaction, in words
Give it a signature and get back who paid, what it cost (base and priority fee), whether it failed and why, which programs ran, whose balances moved, the SOL and SPL transfers, and the swaps. Legacy, v0 (address lookup tables) and v1 transactions. Zero dependencies, any RPC.
Try it
npx github:blixvip/solana-tx-parse x2nTgvSFFneAKW5W5mHcfMYhzen5o7Lfb1pBmepDQQDJZ4ud2Z7QpDxdYVVTVMDqG2e5TJ1qAA8zGDPAxdpudKR
Signature x2nTgvSFFneAKW5W5mHcfMYhzen5o7Lfb1pBmepDQQDJZ4ud2Z7QpDxdYVVTVMDqG2e5TJ1qAA8zGDPAxdpudKR
Status success
Slot 470,678,784 · 2026-11-17 21:08:28 UTC · version legacy
Fee payer H8sMJSCQxfKiFTCfDR3DUMLPwcRbM61LGFJ8N4dK3WjS
Fee 0.0001065 SOL (106,500 lamports: base 5,000 + priority 101,500)
Compute 255 CU used of 203,000 (default limit) @ 500,000 micro-lamports/CU
Programs Token Program, Compute Budget
Balance changes
H8sM…3WjS -0.0001065 SOL (includes the fee)
H8sM…3WjS -37.742077 EPjF…Dt1v
3vKW…AxbM +37.742077 EPjF…Dt1v
Transfers
H8sM…3WjS → 3vKW…AxbM 37.742077 EPjF…Dt1v
Add --json for the full result and --rpc <url> (or SOLANA_RPC_URL) for your own endpoint.
What it does
- Fee split into base and priority, plus the priority fee the Compute Budget instructions ask for
- Failures in words:
instruction 2 (Raydium CLMM) failed: custom program error 6001 (0x1771) - 18 well-known programs named: Jupiter, Raydium, Orca, Meteora, pump.fun, PumpSwap and more
- SOL and token balance changes per wallet, exact amounts as strings
- SOL and SPL transfers, Token and Token-2022, with the owning wallets resolved
- Swaps from balance deltas, for any DEX
- Address lookup tables merged; v1 transactions fetched with the version the RPC asks for
Use it in your code
npm install github:blixvip/solana-tx-parse
import { parseTransaction } from "solana-tx-parse";
const tx = await parseTransaction("x2nTgvSFFneAKW5W5mHcfMYhzen5o7Lfb1pBmepDQQDJZ4ud2Z7QpDxdYVVTVMDqG2e5TJ1qAA8zGDPAxdpudKR");
console.log(tx.status, tx.feePayer);
console.log(tx.fee.lamports, tx.fee.baseLamports, tx.fee.priorityLamports);
for (const t of tx.transfers) console.log(t.fromOwner, "->", t.toOwner, t.amount, t.mint);
Already have the transaction from a websocket or your own client? parseFetchedTransaction(tx) parses it synchronously with no network. Full documentation and every result field are in the README and API reference. MIT licensed, no dependencies.
Integrations
- A JSON endpoint:
GET /tx/<signature>withnode:http, no framework - A Discord webhook alert: post a transaction summary to a channel
Guides
How to parse a Solana transaction in Node.js without web3.js
How to see the priority fee a Solana transaction paid
From the team behind Blix
solana-tx-parse is a small, open piece of what runs behind Blix, the AI-powered Solana memecoin terminal with 0% fees: every pump.fun launch live, AI coin ratings, narratives, wallet and X tracking, and one-click trading. If you want the result rather than the plumbing, use Blix. There is also a public API and an MCP server for AI agents.
Contribute
Pull requests are welcome and there are good first issues with step-by-step instructions. Setup is git clone and npm test, fully offline. Ask anything in Discussions or the Discord.