For the complete documentation index, see llms.txt. This page is also available as Markdown.

Tron JSON-RPC API

JSON-RPC API reference for TRON blockchain. Explore method list, request examples, and how to connect to GetBlock's TRON RPC endpoints

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

https://go.getblock.io/<ACCESS-TOKEN>/jsonrpc
https://shared.us-east-1.getblock.io/<ACCESS_TOKEN/jsonrpc
https://shared.ap-southeast-1.getblock.io/<ACCESS_TOKEN/jsonrpc

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

Chain & Network

Method
Description

eth_chainId

Chain ID (0x2b6653dc = 728126428)

eth_blockNumber

Latest block number

net_version

Network ID (728126428)

web3_clientVersion

Client software version

web3_sha3

Keccak-256 hash of data

eth_syncing

Node sync status

Account & State

Method
Description

eth_getBalance

TRX balance of an account (in SUN)

eth_getCode

Contract bytecode at an address

eth_getStorageAt

Value at a storage slot

Blocks

Method
Description

eth_getBlockByNumber

Block by number

eth_getBlockByHash

Block by hash

eth_getBlockTransactionCountByNumber

Transaction count in a block

Transactions

Method
Description

eth_getTransactionByHash

Transaction by hash

eth_getTransactionReceipt

Transaction receipt with logs

buildTransaction

Build a TRON transaction from an EVM-style call

Execution & Logs

Method
Description

eth_call

Read-only contract call

eth_estimateGas

Estimate Energy (as gas)

eth_gasPrice

Energy price (as gas price)

eth_getLogs

Event logs matching a filter

Support

For technical support and questions:

See Also

Last updated

Was this helpful?