Tron JSON-RPC API

TRON exposes an Ethereum-compatible JSON-RPC subset over the /jsonrpc path, so EVM-oriented tooling can read TRON data and TVM contract state. Every request is an HTTP POST with a JSON-RPC 2.0 body: a method, params, and an id. Responses carry the same id and a result or error.

Addresses in this API use TRON's hex (0x41...) form, and balances are in SUN. For transaction creation, staking, and TRON-native features, use the REST API; TRON's idiomatic SDK, TronWeb, is built on REST rather than this JSON-RPC layer.

Base URL

bashhttps://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/jsonrpc
bashhttps://shared.us-east-1.getblock.io/<ACCESS_TOKEN/jsonrpc
bashhttps://shared.ap-southeast-1.getblock.io/<ACCESS_TOKEN/jsonrpc

Replace <ACCESS-TOKEN> with the access token from the GetBlock dashboard.

Chain & Network

MethodDescription
eth_chainIdChain ID (0x2b6653dc = 728126428)
eth_blockNumberLatest block number
net_versionNetwork ID (728126428)
web3_clientVersionClient software version
web3_sha3Keccak-256 hash of data
eth_syncingNode sync status

Account & State

MethodDescription
eth_getBalanceTRX balance of an account (in SUN)
eth_getCodeContract bytecode at an address
eth_getStorageAtValue at a storage slot

Blocks

MethodDescription
eth_getBlockByNumberBlock by number
eth_getBlockByHashBlock by hash
eth_getBlockTransactionCountByNumberTransaction count in a block

Transactions

MethodDescription
eth_getTransactionByHashTransaction by hash
eth_getTransactionReceiptTransaction receipt with logs
buildTransactionBuild a TRON transaction from an EVM-style call

Execution & Logs

MethodDescription
eth_callRead-only contract call
eth_estimateGasEstimate Energy (as gas)
eth_gasPriceEnergy price (as gas price)
eth_getLogsEvent logs matching a filter

Support

For technical support and questions:

See Also