/substreams-svm:substreams-sinkfrom substreams-svm
Guides building production-grade sinks and data pipelines for consuming Solana/SVM Substreams data via gRPC, including cursor persistence, reorg handling, and SQL/KV/file outputs.
Ships in substreams-svm. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Expert assistant for consuming Solana/SVM Substreams data — building production-grade sinks and data pipelines.
A Substreams sink is an application that:
Note: Before building a custom sink, consider using existing solutions:
- substreams-sink-sql — For PostgreSQL and ClickHouse. Handles cursor management, reorgs, batching, and schema management out of the box.
- substreams-sink-kv — For key-value stores.
- substreams-sink-files — For file-based outputs (JSON, CSV, Parquet).
solana.substreams.pinax.network:443Events (per-DEX) or DatabaseChanges (aggregate)export SUBSTREAMS_API_KEY="your-api-key"
# Or
export SUBSTREAMS_API_TOKEN="your-jwt-token"
Get your API key from thegraph.market or pinax.network.
See the references/ directory for detailed guides:
rust-sink.md — Rust sink implementationcursor-reorg.md — Cursor management & reorg handlingFor most use cases, use substreams-sink-sql with the pre-built SVM SPKGs:
substreams-sink-sql run \
"clickhouse://default:@localhost:9000/solana" \
"https://github.com/pinax-network/substreams-svm/releases/download/svm-dex-v0.3.1/clickhouse-svm-dex-v0.3.1.spkg" \
db_out
substreams-sink-sql run \
"postgres://user:pass@localhost:5432/solana?sslmode=disable" \
"https://github.com/pinax-network/substreams-svm/releases/download/svm-dex-v0.3.1/postgres-svm-dex-v0.3.1.spkg" \
db_out
| Module | Description | Output |
|---|---|---|
svm-dex | All DEX swaps (Raydium, Jupiter, Orca, PumpFun, Meteora, etc.) | DatabaseChanges |
svm-transfers | SPL token + native SOL transfers | DatabaseChanges |
svm-balances | Token balance changes | DatabaseChanges |
svm-accounts | Account creation/updates | DatabaseChanges |
svm-metadata | Metaplex token metadata | DatabaseChanges |
Each is available in ClickHouse and PostgreSQL variants.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
6 skills in this plugin
/release-conventionsNaming conventions for tags, releases, and SPKGs in the substreams-svm monorepo. Use when creating releases, tagging versions, or publishing packages./substreams-devExpert knowledge for developing Substreams modules on Solana/SVM. Covers manifest spec, Rust modules, IDL-based decoders, protobuf schemas, and Solana-specific data processing patterns./substreams-packInstructions for building, packing, and distributing Substreams packages (.spkg) in the substreams-svm monorepo. Use when building crates, running `substreams pack`, or copying .spkg files.npx claudepluginhub pinax-network/substreams-svm --plugin substreams-svmOther plugins' skills for the same job