All packages
raydium-clmm

raydium-clmm

billettc
v0.1.5/8 downloads/Repository

Package ref

raydium-clmm@v0.1.5

Run package

CLI

Run map_raydium_clmm from the command line.

substreams run raydium-clmm@v0.1.5 map_raydium_clmm -e solana --start-block -1
Authenticate by running substreams auth or directly on thegraph.market (see docs).

README

Raydium CLMM → ClickHouse (hosted SQL sink)

Solana mainnet Substreams for Raydium CLMM (CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK), built for a StreamingFast-hosted ClickHouse sink (from-proto mode).

Scope

ItemValue
NetworkSolana mainnet (network: solana)
ProgramRaydium CLMM
Instructionsswap, swap_v2, open/close/increase/decrease liquidity (+ v2 / token22 NFT open)
FilterProgram-wide (all pools)
Output modulemap_raydium_clmmraydium.v1.Events
Sink modeFrom proto definition (required for ClickHouse)

Each instruction type is a separate protobuf message and ClickHouse table (raydium_clmm_*).

Build

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.

Verify data quality (before hosted deploy)

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.

Hosted ClickHouse

  1. Confirm substreams run output looks correct
  2. substreams publish → public spkg URL
  3. Provide a reachable ClickHouse (StreamingFast does not host the database)
  4. Deploy via StreamingFast Portal HostedService

See skill substreams-hosted-sink for the deploy workflow.

Modules

Execution graph

1 modules
mapMain

map_raydium_clmm

Decodes Raydium CLMM program instructions (swaps + open/close/increase/decrease liquidity) via walk_instructions (CPI-safe). Output is annotated for ClickHouse from-proto sink.

from #360000000