| Crates.io | aerium-grpc |
| lib.rs | aerium-grpc |
| version | 0.2.0 |
| created_at | 2025-10-15 21:39:01.873846+00 |
| updated_at | 2025-10-15 21:39:01.873846+00 |
| description | Rust client for interacting with the Aerium blockchain via gRPC |
| homepage | https://aerium.network |
| repository | https://github.com/aerium-network/aerium |
| max_upload_size | |
| id | 1884998 |
| size | 811,652 |
Rust client for interacting with the Aerium blockchain via gRPC.
cargo add aerium-grpc
use aerium_grpc::{blockchain_client::BlockchainClient, GetBlockchainInfoRequest};
use tonic::transport::Channel;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let channel = Channel::from_static("http://127.0.0.1:50051")
.connect()
.await?;
let mut client = BlockchainClient::new(channel);
let request = tonic::Request::new(GetBlockchainInfoRequest {});
let response = client.get_blockchain_info(request).await?;
let info = response.into_inner();
println!("get_blockchain_info Response: {:?}", info);
Ok(())
}