Project: Advanced Infrastructure Challenge — Smart Transaction Stack Builder: Mofe Bankole Stack: TypeScript · Solana · Jito · Yellowstone gRPC · OpenRouter · SQLite · Fastify
Nerve Pipeline is a smart Solana transaction infrastructure layer that combines real-time network observation, Jito MEV bundle submission, and AI-driven retry logic into a single autonomous pipeline. The system is designed to maximise bundle landing probability on a congested network by dynamically adapting tip values, blockhash freshness, and retry strategy — without requiring manual intervention.
The core thesis: a transaction stack that can reason about its own failures and self-correct is more valuable than one that simply retries blindly with exponential backoff.
┌─────────────────────────────────────────────────────────────────────┐
│ Nerve Pipeline │
│ │
│ ┌──────────────┐ ┌──────────────┐ ┌────────────────┐ │
│ │ GeyserBridge │───▶│ Stream │───▶│ LeaderTracker │ │
│ │ (gRPC server) │ │ Client │ │ (slot tracking) │ │
│ └──────────────┘ └──────────────┘ └───────┬────────┘ │
│ │ │
│ ▼ │
│ ┌────────────────┐ │
│ │ Bundle Builder │ │
│ │ (jito-ts) │ │
│ └───────┬────────┘ │
│ │ │
│ ┌────────────────────────────────────┤ │
│ │ │ │
│ ▼ ▼ │
│ ┌────────────────┐ ┌────────────────┐ │
│ │ Submission │──failure──▶ │ AI Agent │ │
│ │ Manager │◀──decision── │ (OpenRouter) │ │
│ │ (5s loop) │ └────────────────┘ │
│ └───────┬────────┘ │
│ │ │
│ ▼ │
│ ┌────────────────┐ │
│ │ Jito Block │──→ Lifecycle Tracker ──→ SQLite DB │
│ │ Engine │ (state machine) │
│ └────────────────┘ │
│ │
│ ┌────────────────┐ ┌────────────────┐ │
│ │ Fastify API │────▶│ Dashboard │ │
│ │ (REST) │ │ (self-contained)│ │
│ └────────────────┘ └────────────────┘ │
└─────────────────────────────────────────────────────────────────────┘
File: src/engine/stream-client.ts
The entry point for real-time Solana network data. GeyserBridge connects via @grpc/grpc-js + @grpc/proto-loader directly to a Yellowstone-compatible gRPC endpoint, subscribing to the slot stream.
Why raw gRPC over an SDK wrapper? Direct proto-loader gives full control over connection lifecycle and stream recovery without SDK abstraction overhead. When the stream drops (which it does under high load), the client reconnects without restarting the pipeline.
Resilience: If the gRPC connection is unavailable, the client falls back to a simulated slot emitter (400ms interval) — keeping the downstream pipeline alive for local development and testing without a live endpoint.
File: src/engine/leader-tracker.ts
Consumes slot events from the Stream Client and maintains two critical pieces of state: