Runnable examples for the tronz TRON SDK.
These examples track tronz 0.4.1.
All examples target the Nile testnet. Read-only examples run without a private key; examples that send transactions require TRON_PRIVATE_KEY=<hex>.
# Read-only
cargo run -p examples-queries --example query
# With private key
TRON_PRIVATE_KEY=<hex> cargo run -p examples-staking --example stakeThis repository contains the following examples:
- Queries
- Signers
- Transfers
- Staking
- Contracts
- Sol macro (
tron_sol!) - Solidity node (irreversible state)
- TRC10
- TRC20
- TRC721 (NFT)
- Accounts
Licensed under either of Apache License, Version 2.0 or MIT license at your option.