eth_chainId - TRON RPC Method
Get the chain ID for TRON. Essential for transaction signing and network verification.
Returns the chain ID used for transaction signing on TRON.
Why TRON? Build on the TVM-compatible Layer 1 for TRC-20 payments, wallet APIs, and low-cost smart contract execution with TVM compatibility paired with native TRON wallet APIs, DPoS block production, and low-cost transaction flows.
Use Cases
The eth_chainId method is essential for:
- Transaction signing - Ensure transactions are signed for the correct network
- Network verification - Confirm connection to the expected chain
- Multi-chain apps - Handle different networks programmatically
- Wallet integration - Validate network before transactions
Request Parameters
This method accepts no parameters.
Response Body
Chain ID in hexadecimal
Code Examples
curl -X POST https://api-tron-mainnet.n.dwellir.com/YOUR_API_KEY/jsonrpc \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_chainId",
"params": [],
"id": 1
}'Related Methods
net_version- Get network versioneth_syncing- Check sync status
eth_getLogs
Query event logs on TRON. Essential for indexing TRC-20 transfers, wallet operations, and EVM-compatible smart contract integrations on the TVM-compatible Layer 1 for TRC-20 payments, wallet APIs, and low-cost smart contract execution.
eth_syncing
Check the sync status of your TRON node. Returns sync progress or false when fully synced — essential for node health monitoring and dApp reliability.