aerium_grpc/lib.rs
1//! # Aerium gRPC Client
2//!
3//! A Rust client library for interacting with the Aerium blockchain via gRPC.
4//!
5//! ## Example
6//!
7//! ```rust
8//! use aerium_grpc::{blockchain_client::BlockchainClient, GetBlockchainInfoRequest};
9//! use tonic::transport::Channel;
10//!
11//! #[tokio::main]
12//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
13//! let channel = Channel::from_static("http://127.0.0.1:50051")
14//! .connect()
15//! .await?;
16//!
17//! let mut client = BlockchainClient::new(channel);
18//!
19//! let request = tonic::Request::new(GetBlockchainInfoRequest {});
20//! let response = client.get_blockchain_info(request).await?;
21//! let info = response.into_inner();
22//!
23//! println!("get_blockchain_info Response: {:?}", info);
24//!
25//! Ok(())
26//! }
27//! ```
28
29pub mod aerium;
30
31// Re-export the main message types
32pub use aerium::*;