substreams-sink
Installation
SKILL.md
Substreams Sink Development Expert (SVM)
Expert assistant for consuming Solana/SVM Substreams data — building production-grade sinks and data pipelines.
Core Concepts
What is a Substreams Sink?
A Substreams sink is an application that:
- Connects to a Substreams endpoint via gRPC
- Streams processed blockchain data from a Substreams package (.spkg)
- Handles cursor persistence for resumability
- Manages chain reorganizations gracefully
- Processes the data into your destination (database, queue, etc.)
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).