Tron Module
The Tron module parses transactions for the Tron blockchain, including TRX transfers, TRC-20 tokens, and smart contract interactions.
Architecture Overview
Transaction Model
- Encoding: Protocol Buffers
- Account Model: Account-based similar to Ethereum
- Energy System: Bandwidth and Energy for transactions
- Fee Model: TRX for bandwidth, Energy for smart contracts
Key Components
The Tron parser handles:
- TRX transfers
- TRC-20 token operations
- Smart contract interactions
- Account resource management
Transaction Types
TRX Transfer
Native TRX token transfers between accounts.
TRC-20 Tokens
Token standard similar to ERC-20 on Ethereum:
- Transfer
- Approve
- TransferFrom
Smart Contracts
Tron Virtual Machine (TVM) compatible with Ethereum Virtual Machine.
Visualization Strategy
Resource Display
Show bandwidth and energy consumption clearly, as these are key concepts for Tron users.
Contract Interactions
Display contract method calls and parameters in human-readable format.
Implementation Details
Source code available at: