Solana DEX Parser (Go)¶
A Go library that turns Solana transactions into trades, liquidity events, meme-launchpad events and transfers.
Features¶
- Trades with exact raw amounts, pools, fees from protocol events, bot attribution and relay tips
- Jupiter v6 (including the
*_v2routes), Jupiter Z, DCA, Limit Order and VA - AMMs and prop AMMs: Raydium, Orca, Meteora, PumpSwap, HumidiFi, SolFi, GoonFi, BisonFi, TesseraV and more
- Liquidity events for Raydium, Orca, Meteora and PumpSwap pools
- Meme launchpads: Pump.fun, Raydium LaunchLab, Meteora DBC, Moonit, Heaven, Sugar, Boop.fun
- Failed and version 1 transactions, address lookup tables with pluggable fetchers
- ShredParser for pre-execution data (Jito ShredStream), converters for Yellowstone gRPC
The full protocol and bot tables are in the README.
Quick Install¶
Minimal Example¶
result := dexparser.NewDexParser().ParseAll(tx, nil)
fmt.Printf("Trades: %d\n", len(result.Trades))
fmt.Printf("Liquidities: %d\n", len(result.Liquidities))
tx is a *adapter.SolanaTransaction: see Getting Started for how to fetch and decode one.
Documentation¶
- Getting Started: fetching transactions, configuration, result fields, gRPC
- ShredParser: pre-execution parsing
- Examples: code for specific use cases
- Development: contributing and testing
License¶
MIT License, see LICENSE and NOTICE.
Acknowledgements¶
Ported from the TypeScript solana-dex-parser. The relay tip account list comes from sol-parser-sdk; its IDLs and those of solana-streamer and pump-public-docs served as references.