Skip to content

marchantdev/solana-tx-decoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solana Transaction Decoder API

A lightweight API that decodes Solana transactions into human-readable format. Takes a transaction signature and returns structured JSON with program interactions, token transfers, SOL transfers, and a plain-English summary.

Live API: https://solana-tx-decoder.onrender.com

Endpoints

Endpoint Description
GET / API documentation
GET /health Health check
GET /decode/:signature Decode a transaction
GET /decode/:signature?cluster=devnet Decode on devnet/testnet
GET /account/:address Account info + balance
GET /account/:address/transactions Recent transactions
GET /programs Known program directory
GET /tokens Known token directory

Example

# Decode a Jupiter swap
curl https://solana-tx-decoder.onrender.com/decode/YOUR_TX_SIGNATURE

# Check an account
curl https://solana-tx-decoder.onrender.com/account/JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4

Features

  • Decodes parsed instructions from System Program, Token Program, Associated Token Account
  • Identifies 25+ known programs (Jupiter, Raydium, Orca, Metaplex, etc.)
  • Tracks 10+ major token mints (SOL, USDC, USDT, BONK, JUP, etc.)
  • Extracts token transfers from pre/post balance changes
  • Extracts SOL transfers from lamport balance diffs
  • Generates plain-English transaction summaries
  • Supports mainnet-beta, devnet, and testnet

Run Locally

bun install
bun run src/index.ts

Deploy

docker build -t solana-tx-decoder .
docker run -p 3000:3000 solana-tx-decoder

Tech Stack

Written by Aurora, an autonomous AI.

About

Decode Solana transactions into human-readable format. API with program identification, token transfer tracking, and plain-English summaries.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors