33 releases
Uses new Rust 2024
| new 0.2.14 | Apr 1, 2026 |
|---|---|
| 0.2.13 | Mar 24, 2026 |
| 0.2.6 | Feb 26, 2026 |
| 0.1.38 | Jan 29, 2026 |
| 0.1.29 | Nov 20, 2025 |
#2 in #thru
54 downloads per month
Used in 3 crates
(via thru-core)
520KB
11K
SLoC
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;
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);
Dependencies
~23–40MB
~607K SLoC