# 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](/api-reference/tron-trx/tron-rest-api/); TRON's idiomatic SDK, TronWeb, is built on REST rather than this JSON-RPC layer.

## Base URL

#### Frankfurt, Germany

```bash
https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/jsonrpc
```

#### New York, USA

```bash
https://shared.us-east-1.getblock.io/<ACCESS_TOKEN/jsonrpc
```

#### Singapore, Singapore

```bash
https://shared.ap-southeast-1.getblock.io/<ACCESS_TOKEN/jsonrpc
```

> **Info:** 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:

* Support: [support@getblock.io](mailto:support@getblock.io)

## See Also

* [TRON Official JSON-RPC Reference](https://developers.tron.network/reference/json-rpc-api-overview)
