thru-client 0.1.33

High-level gRPC client library for the Thru blockchain
docs.rs failed to build thru-client-0.1.33
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

High-level gRPC client library for the Thru blockchain

This crate provides a convenient wrapper around the low-level thru-grpc-client generated code, offering a more ergonomic API for interacting with Thru nodes.

Example

use thru_client::{Client, ClientBuilder};
use thru_base::tn_tools::Pubkey;
use std::time::Duration;

# async fn example() -> Result<(), Box<dyn std::error::Error>> {
let client = ClientBuilder::new()
    .http_endpoint(url::Url::parse("http://127.0.0.1:8472")?)
    .timeout(Duration::from_secs(30))
    .build()?;

let height = client.get_block_height().await?;
println!("Current height: {}", height.finalized_height);
# Ok(())
# }