build-data-pipeline

Builds Solana data pipelines and indexers using webhooks, WebSockets, and PostgreSQL storage.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/RavitejaKarra24/dotfiles --skill build-data-pipeline-ravitejakarra24
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: build-data-pipeline
Source: https://github.com/RavitejaKarra24/dotfiles/tree/main/agents/.agents/skills/build-data-pipeline
Command: npx skills add https://github.com/RavitejaKarra24/dotfiles --skill build-data-pipeline-ravitejakarra24

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Building a Solana indexer requires choosing between ingestion methods (webhooks, WebSockets, gRPC, polling), designing storage schemas, and handling duplicates and missed events. This Skill guides developers through those decisions and implementation milestones so on-chain data becomes queryable without trial-and-error architecture work. ## Core Features & Use Cases - Ingestion Method Selection: Compares Helius webhooks, WebSocket subscriptions, LaserStream gRPC, and RPC polling by latency, complexity, and cost. - Storage Schema Design: Provides PostgreSQL schemas for transactions, token transfers, swaps, and OHLCV candles, plus Redis caching and pub/sub patterns. - Idempotency and Backfill: Enforces deduplication via transaction signatures and backfill logic to recover events missed during deploys or outages. - Use Case: A developer wants to track swaps on a DEX program and serve analytics. The Skill walks them from creating a Helius webhook, through parsing enhanced transactions, to storing swaps in PostgreSQL and aggregating price candles. ## Quick Start Ask the assistant to help you build a Solana data pipeline that indexes transactions for a specific program and stores them in PostgreSQL.

Frequently Asked Questions about build-data-pipeline

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a Solana indexer for on-chain data?

Start with Helius webhooks to receive parsed transaction events at your endpoint, then write them idempotently into PostgreSQL using the transaction signature as a deduplication key. Add a backfill routine using the Helius transaction history API to recover any missed events.

Helius webhooks vs WebSocket subscriptions for Solana data?

Webhooks are the simplest option with roughly 200-500ms latency and no infrastructure to maintain. WebSocket subscriptions like accountSubscribe offer lower latency and more control but require managing a persistent connection and reconnection logic.

How do I handle duplicate webhook events in a Solana pipeline?

Use the transaction signature as a natural deduplication key with an INSERT ... ON CONFLICT DO NOTHING statement in PostgreSQL. Webhooks and WebSockets can deliver duplicates, so every write path must be idempotent.

What database should I use for Solana indexed data?

PostgreSQL is the standard choice for structured indexed data, using JSONB for raw payloads and NUMERIC for token amounts that overflow BIGINT. Redis works as a caching layer for hot data like token prices and real-time leaderboards.

How do I backfill missed Solana transactions?

Paginate through the Helius address transaction history API using the before-signature parameter, feeding each transaction through the same idempotent handler used by your webhook. This recovers events lost during deploys, restarts, or outages.

Why should I store the slot number with every Solana record?

The slot is the source of truth for ordering on Solana and enables deduplication, gap detection, and lag monitoring. Without it you cannot reliably detect missing data or measure how far behind your pipeline has fallen.