whatisgithub

What is solana-realtime-indexer?

shaurya35/solana-realtime-indexer — explained in plain English

Analysis updated 2026-05-18

0RustAudience · developerComplexity · 4/5LicenseSetup · moderate

In one sentence

A Rust tool that streams live Solana blockchain trades from pump.fun and PumpSwap and stores accurate, deduplicated trade records in Postgres.

Mindmap

mindmap
  root((repo))
    What it does
      Streams Solana trades live
      Decodes actual fills
      Stores to Postgres
    Tech stack
      Rust
      Yellowstone gRPC
      Postgres
    Use cases
      Build a trading dashboard
      Analyze pump.fun volume
      Study Solana indexing
    Audience
      Developers
      Crypto builders

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Stream and store real time pump.fun and PumpSwap trades into a Postgres database.

USE CASE 2

Replay captured blockchain traffic through the decoder to test changes without a live network.

USE CASE 3

Build analytics or dashboards on top of accurately deduplicated Solana trade events.

What is it built with?

RustYellowstone gRPCPostgresSolana

How does it compare?

shaurya35/solana-realtime-indexer04amanrajj/netwatch0xr10t/pulsefi
Stars000
LanguageRustRustRust
Setup difficultymoderatemoderatehard
Complexity4/53/54/5
Audiencedeveloperops devopsdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Live mode needs a mainnet Yellowstone gRPC endpoint, tests run offline against a committed fixture.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

So what is it?

solana-realtime-indexer is a work in progress tool, written in Rust, that watches trading activity on the Solana blockchain in real time, specifically for two trading platforms called pump.fun and PumpSwap. It listens to a live stream of blockchain activity, figures out which parts of that activity are actual trades, and saves them into a Postgres database. The author explains a few specific problems this project is trying to solve well. First, it looks at what actually happened in a trade rather than just what a user originally requested, since the price can move between the moment someone asks to buy and the moment the trade actually completes, so reading only the request would give wrong numbers. Second, it looks inside transactions that route through other programs before reaching pump.fun, since a lot of trading volume happens this way and a tool that only checks the surface level of a transaction would miss those trades entirely. Third, it gives every individual trade a reliable unique identifier built from several pieces of information together, because the simpler approach most similar tools use can accidentally treat two separate trades within the same transaction as if they were the same one, losing data. The project also includes a way to record raw blockchain traffic to a file and play it back later through the same processing logic, which is how its automated tests confirm that the same input always produces the same output without needing a live network connection. To try it, someone would clone the repository, copy an example settings file, and run the built in test suite, which uses a small saved sample of blockchain data and finishes in about a quarter of a second. Running it against live mainnet trading data requires a Yellowstone gRPC connection, a way of streaming blockchain data, configured in the settings file. According to the README, live decoding, database schema setup, and reliable trade replay already work, while a proper database writing pipeline and a query interface are still planned. The project has no GitHub stars yet and is released under the MIT license.

Copy-paste prompts

Prompt 1
Help me clone solana-realtime-indexer and run its test suite against the committed fixture.
Prompt 2
Explain why solana-realtime-indexer decodes TradeEvent fills instead of Buy instruction intents.
Prompt 3
Walk me through configuring a Yellowstone gRPC endpoint to run this indexer against mainnet.
Prompt 4
Explain how solana-realtime-indexer builds a unique ID for trades hidden inside router transactions.

Frequently asked questions

What is solana-realtime-indexer?

A Rust tool that streams live Solana blockchain trades from pump.fun and PumpSwap and stores accurate, deduplicated trade records in Postgres.

What language is solana-realtime-indexer written in?

Mainly Rust. The stack also includes Rust, Yellowstone gRPC, Postgres.

What license does solana-realtime-indexer use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is solana-realtime-indexer to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is solana-realtime-indexer for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.