This project provides multiplexing of multiple Yellowstone gRPC subscriptions based on Fastest Wins Strategy.
- Multiple Futures get merged where the first next block that arrives will be emitted.
- No guarantees are made about if the messages are continuous or not.
- Reconnects are handled transparently inside the Futures.
Disclaimer: The library is designed with the needs of LiteRPC in mind yet might be useful for other projects as well.
The implementation is based on Rust Futures.
Please open an issue if you have any questions or suggestions -> New Issue.
These are the currently maintained versions of the library
Tag (geyser-grpc-connector) | Yellowstone | Solana | Branch |
---|---|---|---|
0.10.x+yellowstone.1.13+solana.1.17.28 | 1.13 | 1.17.28 | release/v0.10.x+yellowstone.1.13 |
0.10.x+yellowstone.1.12+solana.1.17.15 | 1.12 | 1.17.15 | main |
cargo add geyser-grpc-connector
An example how to use the library is provided in stream_blocks_mainnet.rs
.
- Library does not support other data than Blocks/Slots very well.
- Should not be used with commitment level PROCESSED because slot numbers are not monotoic.
- Library needs messages to be in order and provide slot information to work properly.