Go to file
godmodegalactus fb1c9f0ea6
update solana version to v1.17.31
2024-04-17 14:12:29 +02:00
.github/workflows
ci
examples Changing Notify channel to broadcast channel 2024-04-16 10:45:25 +02:00
src export GeyserGrpcClient, GeyserGrpcClientResult, GeyserGrpcClientError 2024-04-16 13:37:54 +02:00
.gitignore
Cargo.lock update solana version to v1.17.31 2024-04-17 14:12:29 +02:00
Cargo.toml update solana version to v1.17.31 2024-04-17 14:12:29 +02:00
LICENSE
README.md mention crates.io 2024-01-02 18:23:35 +01:00
rust-toolchain.toml clippy+fmt 2024-01-31 18:53:07 +01:00

README.md

Solana Geyser gRPC Multiplexing and Reconnect

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.

Installation and Usage

cargo add geyser-grpc-connector

An example how to use the library is provided in stream_blocks_mainnet.rs.

Known issues

  • 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.