Tron Development
Index Tron blockchain data including transactions, smart contract events, and TRC-20/TRC-721 token transfers.Getting Started
Key Features
TRC-20 Tokens
Index TRC-20 token transfers and balances
Smart Contracts
Monitor smart contract interactions and events
TRX Transfers
Track native TRX transfers and transactions
Resource Model
Handle Tron’s unique energy and bandwidth system
Basic Processor Setup
Common Use Cases
TRC-20 Token Indexing
Smart Contract Events
Native TRX Transfers
Data Types
Transaction Types
TransferContract- Native TRX transfersTriggerSmartContract- Smart contract callsTransferAssetContract- TRC-10 token transfersCreateSmartContract- Contract deployments
Resource Management
Tron uses energy and bandwidth for transaction execution:- Energy: Used for smart contract execution
- Bandwidth: Used for transaction data storage
- Frozen TRX: Provides energy and bandwidth
Performance Optimization
Selective Filtering
Filter by specific contract addresses and event types
Batch Processing
Process multiple transactions in batches
Resource Monitoring
Monitor energy and bandwidth usage patterns
Efficient Queries
Optimize database queries for Tron data structures
Examples
USDT Transfers
Index USDT transfers on Tron network
DeFi Protocol
Monitor JustSwap and SunSwap activity
Network Information
Mainnet
- Gateway:
https://v2.archive.subsquid.io/network/tron-mainnet - RPC:
https://api.trongrid.io - Block Time: ~3 seconds
- Finality: 19 confirmations
Testnet (Shasta)
- Gateway:
https://v2.archive.subsquid.io/network/tron-shasta - RPC:
https://api.shasta.trongrid.io
Best Practices
- Handle Tron’s unique address format (base58)
- Monitor energy consumption for contract interactions
- Implement proper error handling for failed transactions
- Use appropriate block confirmation depths
- Consider Tron’s resource freezing mechanism
Next Steps
- Explore Tron examples
- Learn about Tron’s resource model
- Check TronGrid API documentation

