Expert knowledge for consuming Substreams data from Solana/SVM modules. Use when building sinks, real-time data pipelines, or integrating Substreams outputs into applications.
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.
npx skills add pinax-network/substreams-sink下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer