Practical overview
When it fits
Use Tronz when a Rust application needs typed, asynchronous access to TRON nodes for reads or transaction and contract operations.
Who it is for
- Rust developers adding TRON network access to an application.
- Teams building TRX, TRC10 or TRC20 workflows or TRON smart-contract integrations.
Documented uses
- Query blocks, accounts, transactions and contract state.
- Build token transfers, balance queries and staking operations.
- Create typed smart-contract bindings and make contract calls or decode events.
Requirements & limits
The repository is public and identifies the project as open source under MIT and Apache-2.0 licensing. Installation is documented through Cargo.
- The documented transport is gRPC, with connections to TronGrid, FullNodes and SolidityNodes.
- Rust 1.91.1 or later is specified in the repository README.
- Optional feature flags enable signing integrations; the AWS KMS feature requires an AWS account.
- The SDK documents timeout and retry configuration and endpoint failover.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Add Tronz to a Rust project
Declare the Tronz dependency using the documented Cargo installation options.
Before you start
- A Rust project using Cargo.
- Rust 1.91.1 or later.
Steps
From the project directory, run the command below.
cargo add tronzAlternatively, add
tronz = "0.5"under[dependencies]inCargo.toml.
Expected outcome
The project declares Tronz as a dependency.
Guide limitations
- This covers dependency setup only; it does not configure a network endpoint or demonstrate a running application.
Read the latest TRON block in Rust
Use the documented quick-start pattern to request the latest block through TRON gRPC.
Before you start
- Tronz added to a Rust project.
- A Tokio-based async Rust entry point.
- A reachable TRON gRPC endpoint; the README example uses
TRONGRID_MAINNET.
Steps
Create a provider with
ProviderBuilder::new().connect_grpc(TRONGRID_MAINNET).await?.Call
provider.get_now_block().await?.Read the returned block number and timestamp.
Expected outcome
The example obtains the latest block and accesses its number and timestamp.
Guide limitations
- The README marks its code example
no_run; it does not establish that a particular endpoint is reachable in a user's environment.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 13 October 2026
- Original website title
- throgxyz/tronz · Official homepage title · retained in its source language

