Overview
Tron uses the secp256k1 elliptic curve — the same as Ethereum. The Tron address is derived from the same public key as the EVM address: take the last 20 bytes of keccak256(pubkey), prepend0x41, then base58check-encode. This means you can derive the Tron address directly from the EVM address without any additional signing.
| Property | Value |
|---|---|
| Curve | secp256k1 |
| Root Wallet | EVM |
| Address Format | base58check (T prefix) |
| Hashing | Keccak-256 (address) |
| Serialization | TronGrid REST API |
| Smallest Unit | SUN (1 TRX = 1,000,000 SUN) |
Dependencies
Add topubspec.yaml:
Derive Address
Tron and EVM share the same public key, so the Tron address is just a re-encoding of the EVM address:Sign a Message
Tron message signing uses a prefix similar to Ethereum EIP-191, then hashes with Keccak-256:Sign a Transaction
Tron transaction signing uses the TronGrid REST API. The API returns atxID (already a 32-byte hash) which you sign directly: