#blockchain #grpc-client #thru #rpc-client

thru-client

High-level gRPC client library for the Thru blockchain

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

Download history 24/week @ 2026-01-20 3/week @ 2026-01-27 31/week @ 2026-02-17 81/week @ 2026-02-24 54/week @ 2026-03-24

54 downloads per month
Used in 3 crates (via thru-core)

Apache-2.0

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