Skip to content

Solana DEX Parser (Go)

Go Version License Tests

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

go get github.com/DefaultPerson/solana-dex-parser-go

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

License

MIT License - see LICENSE

Acknowledgments

Based on solana-dex-parser TypeScript library.