TRON access via Ethereum JSON-RPC API
Tatum allows you to interact with the TRON blockchain using Ethereum-compatible JSON-RPC methods. This is especially useful if you're integrating TRON into systems or libraries already designed for Ethereum.
How it Works
TRON's Ethereum-compatible JSON-RPC endpoint supports a range of standard EVM methods, such as eth_getBalance
, eth_call
, and more.
TRON JSON-RPC Endpoint
Find the TRON RPC endpoints HERE.
Example request:
curl --location 'https://tron-mainnet.gateway.tatum.io/jsonrpc' \
--header 'Content-Type: application/json' \
--header 'x-api-key: {YOUR_API_KEY}' \
--data '{
"jsonrpc": "2.0",
"method": "eth_getBalance",
"params": [
"0x85cC29184B18AE2909b85668DA996ACFA253F4e2",
"latest"
],
"id": 1
}'
Important Information
- The address format must be in Ethereum-style hexadecimal format, prefixed with 0x.
- Only supported Ethereum-compatible methods will work. For unsupported features, refer to native TRON APIs.
Updated 13 days ago