A high-performance Go library for parsing Solana DEX transactions.
Supports 23 full parsers + 55 routing detection (program IDs), including Jupiter, Raydium, Orca, Meteora, Pumpfun, Pumpswap, and 14 trading bots with fee detection + 6 bot programs .
go get github.com/DefaultPerson/solana-dex-parser-go
package main
import (
"encoding/json"
"fmt"
dexparser "github.com/DefaultPerson/solana-dex-parser-go"
)
func main () {
var tx dexparser.SolanaTransaction
json .Unmarshal ([]byte (txJSON ), & tx )
parser := dexparser .NewDexParser ()
result := parser .ParseAll (& tx , nil )
fmt .Printf ("Trades: %d\n " , len (result .Trades ))
fmt .Printf ("Liquidities: %d\n " , len (result .Liquidities ))
fmt .Printf ("MemeEvents: %d\n " , len (result .MemeEvents ))
}
Multi-Protocol - Jupiter, Raydium, Orca, Meteora, Pumpfun, Moonit, etc.
Rich Data - Trades, liquidity events, transfers, meme events
High Performance - Optimized JSON parsing, memory pooling
gRPC Support - ShredParser for Helius/Triton streams
Status Legend:
β
Parser β Full trade/liquidity parsing with instruction decoding
π Constants β Program ID defined for routing detection only
DEX Aggregators & Routers
Protocol
Trades
Liquidity
Transfers
Status
Jupiter (V6, DCA, Limit, VA)
β
β
β
β
Parser
OKX DEX
β
β
β
π Constants
DFlow
β
β
β
β
Parser
Sanctum
β
β
β
π Constants
Photon
β
β
β
β
Parser
Raydium Route
β
β
β
β
Parser
Protocol
Trades
Liquidity
Transfers
Status
Raydium V4
β
β
β
β
Parser
Raydium CPMM
β
β
β
β
Parser
Raydium CL
β
β
β
β
Parser
Orca Whirlpool
β
β
β
β
Parser
Meteora DLMM
β
β
β
β
Parser
Meteora Pools
β
β
β
β
Parser
Meteora DAMM
β
β
β
β
Parser
PumpSwap
β
β
β
β
Parser
Phoenix
β
β
β
π Constants
Lifinity
β
β
β
π Constants
Lifinity V2
β
β
β
π Constants
OpenBook
β
β
β
π Constants
Protocol
Trades
Liquidity
Transfers
Status
SolFi
β
β
β
β
Parser
GoonFi
β
β
β
β
Parser
Obric V2
β
β
β
β
Parser
HumidiFi
β
β
β
β
Parser
Protocol
Trades
Create
Migrate
Status
Pumpfun
β
β
β
β
Parser
Raydium Launchpad
β
β
β
β
Parser
Meteora DBC
β
β
β
β
Parser
Moonit
β
β
β
β
Parser
Heaven.xyz
β
β
β
β
Parser
Sugar.money
β
β
β
β
Parser
Bonk
β
β
β
π Constants
BoopFun
β
β
β
β
Parser
Trading Bots (Fee Account Detection)
Bot
Detection
Status
Trojan
β
β
Parser
BONKbot
β
β
Parser
Axiom
β
β
Parser
GMGN
β
β
Parser
BullX
β
β
Parser
Maestro
β
β
Parser
Bloom
β
β
Parser
BananaGun
β
β
Parser
Raybot
β
β
Parser
Photon
β
β
Parser
Padre
β
β
Parser
PepeBoost
β
β
Parser
STBot
β
β
Parser
MevX
β
β
Parser
Trading Bots (Program Detection)
Bot
Detection
Status
Mintech
β
π Constants
Nova
β
π Constants
Apepro
β
π Constants
BananaGun
β
π Constants
Bloom
β
π Constants
Maestro
β
π Constants
Protocol
Trades
Liquidity
Transfers
Status
GooseFX
β
β
β
π Constants
Mercurial
β
β
β
π Constants
Stabble
β
β
β
π Constants
1Dex
β
β
β
π Constants
ZeroFi
β
β
β
π Constants
Protocol
Trades
Liquidity
Status
Serum V3
β
β
π Constants
Aldrin
β
β
π Constants
Aldrin V2
β
β
π Constants
Crema
β
β
π Constants
Saber
β
β
π Constants
Saros
β
β
π Constants
Total: 23 full parsers + 55 routing detection (program IDs)
Real-time shred-stream processing for live blockchain data analysis via gRPC streams (Helius, Triton, etc.):
parser := dexparser .NewShredParser ()
result := parser .ParseAll (& tx , nil )
// Access parsed instructions by program
for program , instructions := range result .Instructions {
fmt .Printf ("%s: %d instructions\n " , program , len (instructions ))
}
Key Differences: ShredParser vs DexParser
Feature
DexParser
ShredParser
Input Data
Complete transaction
Raw message only
Execution State
Post-execution
Pre-execution
Transfer Data
β
Actual results
β No execution
Use Case
Historical analysis
Real-time monitoring
Shred Parser Protocol Support
Protocol
Status
Notes
Pumpfun
β
Buy, Sell, Create, Migrate
PumpSwap
β
Buy, Sell, Add/Remove Liquidity
Jupiter V6
β
Route, SharedAccountsRoute
Raydium V4
β
Swap instructions
Raydium Launchpad
β
Buy, Sell, Create
Meteora DBC
β
Dynamic bonding curve
DFlow
β
Swap routing
Photon
β
Multi-hop aggregation
System Program
β
SOL transfers
Token Program
β
SPL transfers
Token 2022
β
Token extensions
MIT License - see LICENSE