feat: add real-time Solana gRPC streaming endpoints#94
Merged
user1303836 merged 1 commit intomainfrom Feb 18, 2026
Merged
Conversation
Wire the existing SolanaGrpcAdapter into new API endpoints for
continuous transaction ingestion:
- POST /v1/stream/start - starts a background gRPC streaming task
- POST /v1/stream/{id}/stop - cancels a running stream
- GET /v1/streams - lists active streams with status
Each stream spawns a consumer task that batches transactions (100 per
batch or 5s flush interval) and saves them to the DB. Streams are
limited to MAX_CONCURRENT_STREAMS (5) via a semaphore and auto-cleanup
on completion or cancellation.
Config: SOLANA_GRPC_URL and SOLANA_GRPC_TOKEN env vars control the
gRPC connection. Streaming is Solana-only for now.
7348250 to
3ccf1bd
Compare
This was referenced Feb 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
POST /v1/stream/start,POST /v1/stream/{id}/stop,GET /v1/streamsendpoints for continuous Solana transaction ingestion via gRPCSOLANA_GRPC_URLandSOLANA_GRPC_TOKENenv vars (also viaSPECTRAPLEX_prefix orspectraplex.toml)Repositoryis nowClone(PgPool is Arc-backed) so the stream consumer can hold its own referenceFiles changed
core/src/config.rs- addedsolana_grpc_urlandsolana_grpc_tokenfieldsadapters/src/repo.rs- added#[derive(Clone)]toRepositoryapi/Cargo.toml- addedtokio-utildependencyapi/src/main.rs- streaming types, handlers, routes, and 13 new testsTest plan