TRON API Integration
Overview
TRON is supported by Pocket Network's enterprise-grade infrastructure with guaranteed uptime, global edge network, and developer-first tooling.
Network Information
| Property | Value |
|---|---|
| Network Name | TRON |
| Native Token | TRX |
| EVM Chain ID | 728126428 |
| Pocket Service ID | tron |
| Block Explorer | TRONSCAN |
Supported APIs
| API | Documentation |
|---|---|
| TRON JSON-RPC | view spec |
Integration Examples
Quick Setup with TronWeb
// Using TronWeb
import TronWeb from 'tronweb';
const tronWeb = new TronWeb({
fullHost: 'YOUR_ENDPOINT'
});
// Get latest block
const block = await tronWeb.trx.getCurrentBlock();
console.log('Latest block:', block);
// Get account balance
const balance = await tronWeb.trx.getBalance('TR...');
console.log('Balance:', balance, 'SUN');
Developer Resources
📚 Essential Links
🛠️ Tools & SDKs
💬 Community & Support
Public Endpoint
Free public RPC endpoint available with fair use limits. No API key required.