Decodes Raydium CLMM program instructions (swaps + open/close/increase/decrease liquidity) via walk_instructions (CPI-safe). Output is annotated for ClickHouse from-proto sink.
Output
raydium.v1.EventsInputs
Package ref
raydium-clmm@v0.1.5Run package
CLI
Run map_raydium_clmm from the command line.
substreams run raydium-clmm@v0.1.5 map_raydium_clmm -e solana --start-block -1substreams auth or directly on thegraph.market (see docs).README
Solana mainnet Substreams for Raydium CLMM (CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK), built for a StreamingFast-hosted ClickHouse sink (from-proto mode).
| Item | Value |
|---|---|
| Network | Solana mainnet (network: solana) |
| Program | Raydium CLMM |
| Instructions | swap, swap_v2, open/close/increase/decrease liquidity (+ v2 / token22 NFT open) |
| Filter | Program-wide (all pools) |
| Output module | map_raydium_clmm → raydium.v1.Events |
| Sink mode | From proto definition (required for ClickHouse) |
Each instruction type is a separate protobuf message and ClickHouse table (raydium_clmm_*).
substreams build
# or: substreams protogen ./substreams.yaml --output-path ./src/pb
# cargo build --target wasm32-unknown-unknown --release
# substreams pack
Produces raydium-clmm-v0.1.0.spkg.
Data-plane auth (not Portal): substreams auth
substreams run ./substreams.yaml map_raydium_clmm \
--network solana \
-s 360000000 -t +100 \
-o jsonl
Inspect stdout for typed swap/liquidity rows. Do not use a local DB sink for this quality gate.
substreams run output looks correctsubstreams publish → public spkg URLSee skill substreams-hosted-sink for the deploy workflow.
Modules
Decodes Raydium CLMM program instructions (swaps + open/close/increase/decrease liquidity) via walk_instructions (CPI-safe). Output is annotated for ClickHouse from-proto sink.
Output
raydium.v1.EventsInputs