| Crates.io | shredlink-proto |
| lib.rs | shredlink-proto |
| version | 0.1.1 |
| created_at | 2025-06-19 18:45:35.763665+00 |
| updated_at | 2025-06-20 06:02:17.370898+00 |
| description | Protocol buffer definitions for Shredlink gRPC services |
| homepage | |
| repository | https://github.com/romanbobelyuk/shredlink |
| max_upload_size | |
| id | 1718671 |
| size | 44,088 |
Protocol buffer definitions for Shredlink gRPC services - a fast path to receive Solana blockchain shreds and transactions.
Add this to your Cargo.toml:
[dependencies]
shredlink-proto = "0.1"
tonic = "0.10"
tokio = { version = "1.0", features = ["full"] }
use shredlink_proto::shredlink::{
shredlink_service_client::ShredlinkServiceClient,
SubscribeEntriesRequest
};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut client = ShredlinkServiceClient::connect("http://127.0.0.1:50051").await?;
let request = SubscribeEntriesRequest {};
let mut stream = client.subscribe_entries(request).await?.into_inner();
while let Some(entry) = stream.message().await? {
println!("Received entry for slot: {}", entry.slot);
}
Ok(())
}
## Services
- **SubscribeEntries**: Stream Solana entries by slot
- **SubscribeTransactions**: Stream filtered transactions with account-based filtering
## License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
## Links
- Repository: https://github.com/romanbobelyuk/shredlink
- Documentation: https://shredlink.xyz