Solana DEX Parser (Go)¶
A high-performance Go library for parsing Solana DEX transactions.
Features¶
- Multi-Protocol Support - Jupiter, Raydium, Orca, Meteora, Pumpfun, Moonit, and 30+ more
- High Performance - Optimized JSON parsing, memory pooling, zero-allocation hot paths
- Rich Data Extraction - Trades, liquidity events, transfers, fees, meme events
- gRPC Support - ShredParser for Helius/Triton streams
- Type Safety - Strongly typed Go structs
Quick Install¶
Minimal Example¶
parser := dexparser.NewDexParser()
result := parser.ParseAll(&tx, nil)
fmt.Printf("Trades: %d\n", len(result.Trades))
fmt.Printf("Liquidities: %d\n", len(result.Liquidities))
Supported Protocols¶
| Category | Protocols |
|---|---|
| Aggregators | Jupiter (V6, DCA, Limit), OKX DEX, DFlow, Photon |
| AMMs | Raydium (V4, CPMM, CL), Orca Whirlpool, Meteora (DLMM, DAMM), PumpSwap |
| Prop AMM | SolFi, GoonFi, Obric V2, HumidiFi |
| Meme Platforms | Pumpfun, Raydium Launchpad, Meteora DBC, Moonit, Heaven, Sugar, BoopFun |
| Trading Bots | Trojan, BONKbot, Axiom, GMGN, BullX, Maestro, Bloom, BananaGun, Raybot |
Documentation¶
- Getting Started - Installation and first steps
- Examples - Code examples for all use cases
- Development - Contributing and testing
License¶
MIT License - see LICENSE
Acknowledgments¶
Based on solana-dex-parser TypeScript library.