| Crates.io | tronic |
| lib.rs | tronic |
| version | 0.3.1 |
| created_at | 2025-07-20 12:38:09.427586+00 |
| updated_at | 2025-08-06 17:59:14.248269+00 |
| description | A modular, async-first Rust client for the Tron blockchain. |
| homepage | https://github.com/39george/tronic |
| repository | https://github.com/39george/tronic |
| max_upload_size | |
| id | 1761036 |
| size | 1,008,429 |
A modular, type-safe, async-first Rust client for the Tron blockchain — inspired by Alloy and built for real-world smart contract interaction.
alloy-sol-types macros for compile-time safetytonic) and JSON-RPC providers (WIP)alloy-style buildersuse tronic::client::Client;
use tronic::client::pending::AutoSigning;
use tronic::domain::address::TronAddress;
use tronic::provider::grpc::GrpcProvider;
use tronic::signer::LocalSigner;
use tronic::trx;
// Construct a client with a signing backend
let client = Client::builder()
.provider(
// Build grpc provider
GrpcProvider::new(
"https://grpc.trongrid.io:50051".parse()?,
tronic::client::Auth::None,
)
.await?,
)
.signer(LocalSigner::rand())
.build();
// Send transaction
let txid = client
.send_trx()
.to(TronAddress::rand())
.amount(trx!(1.0 TRX))
.build::<AutoSigning>() // Uses automatic signing strategy
.await?
.broadcast(&())
.await?;
Explore practical usage scenarios in our examples directory:
Multisig - Multi-signature USDT transferEvent listener - Real-time USDT transfer monitoringTrx transfer - Simple trx transfer example