Library for decoding raw Solana transactions from various sources into standardized formats.
Rust components are extensively documented in the following rustdoc: https://yuno-research.github.io/docs/target/doc/solana_tx_decoding/index.html
This library processes raw transaction data from multiple sources (Archive blocks, gRPC streams, JSON RPC) and converts them into standardized types (SwapTx, TokenCreation) that can be easily used across systems. The decoding works in both live and historical settings, producing consistent output regardless of the transaction source.
- Multi-format Support: Handles transactions from Triton One Old Faithful Archive format, Yellowstone gRPC streams, and JSON RPC
- Parallel Processing: Writes decoded results to broadcast channels for concurrent downstream processing
- Multiple Protocol Support: Identifies and decodes swap transactions from multiple DEX protocols
- Token Creation Detection: Extracts new token/pool creation events (Pumpfun bonding curves)
- Standardized Output: All transaction formats are converted into unified
SwapTxandTokenCreationtypes
Swap decoding is supported for:
- Raydium Ammv4
- Raydium Cpmm/Ammv5
- Raydium Launchpad
- Pumpswap Amm
- Pumpfun Bonding Curve
Token creation detection:
- Pumpfun bonding curve creation
The main entry point is analyze_tx, which accepts a TxFormat enum containing any transaction format (Archive, gRPC, or JSON RPC) and writes decoded swap transactions and token creations to broadcast channels.
- This library is a dependency and should not be run as a standalone application
- Failed transactions are automatically skipped during analysis. Output will be successful txs (error none on chain) only