On-chain Indexer & API
A Rust service that reads blockchain activity, stores it, and serves it through a fast API.
- Client
- ███████ · Web3 company
- Role
- Backend Developer
- Type
- Backend service in Rust
- Status
- Running in production
Reading data straight from the chain is slow and hard to query from a frontend. I built a Rust service that follows on-chain activity, organises it in PostgreSQL and ClickHouse, and exposes a clean API. The app can now load history, balances, and events instantly instead of calling RPC nodes on every request.
01
Chain ingestion
Pulls transactions and program events from RPC and processes them in order.
02
Safe on retry
Writes are idempotent, so restarts and retries never create duplicate records.
03
Storage built for the queries
PostgreSQL holds the data the app reads and writes, shaped around the queries the product needs.
04
Analytics at volume
Event history streams into ClickHouse, so totals and dashboards stay fast as the data grows.
05
Fast API
REST endpoints with Redis caching for the data people ask for most.
- Rust
- PostgreSQL
- ClickHouse
- Redis
- Docker
- Solana
Next case study
POS & Inventory
Checkout, stock, and sales reports for every outlet, so the owner sees the whole business on one screen.
“Risk comes from not knowing
what you're doing.”
