For AI agents: an LLM-friendly Markdown version of every page is available by appending .md to its URL or by sending an Accept: text/markdown request header. The full documentation index is at https://www.ankr.com/docs/llms.txt
Skip to main content

TRON


TRON API is available on Web3 API platform.

TRON is an open source public blockchain platform that supports smart contracts. TRON is compatible with Ethereum, which means that you can migrate smart contracts on Ethereum to TRON directly or with minor modifications. TRON relies on a unique consensus mechanism to realize the high TPS of the TRON network that is far beyond Ethereum, bringing developers a good experience of a faster transaction.

In order for your Web3 application to interact with TRON — either by reading blockchain data or sending transactions to the network — it must connect to a TRON node. Developers interact with the blockchain using the methods provided by the API.

We provide two interfaces to query TRON API:

Responses for both of them come in JSON format.


JSON-RPC methods

JSON-RPC is a stateless, lightweight remote procedure call (RPC) protocol. The JSON-RPC interface supported by the TRON network is compatible with Ethereum's. However, due to the difference in chain mechanism and design, TRON cannot support some interfaces on Ethereum. At the same time, TRON also provides dedicated APIs to create different types of transactions.


REST methods

SolidityNode API:

FullNode API:


Methods

Methods

SolidityNode API

SolidityNode API