TRON is a delegated proof-of-stake Layer 1 blockchain run by 27 elected Super Representatives, with an EVM-compatible virtual machine for Solidity contracts.
TRON's virtual machine is largely compatible with the EVM and runs Solidity contracts, but transactions use a Protobuf format instead of Ethereum's RLP encoding. Accounts use base58check addresses starting with T. Contract execution consumes Energy and transaction data consumes Bandwidth, both obtained by staking TRX or paid by burning it. The full node HTTP API and gRPC cover all operations, while the Ethereum-style JSON-RPC accepts only hex addresses, is mostly read-only, and cannot broadcast transactions.
Tron RPC endpoints
| Network | Interface | Endpoint |
|---|---|---|
| Mainnet | JSON-RPC | https:/ |
| Mainnet | HTTP API | https:/ |
| Mainnet | Solidity HTTP API | https:/ |
| Mainnet | gRPC | https:/ |
| Mainnet | Solidity gRPC | https:/ |
| Shasta | JSON-RPC | https:/ |
| Shasta | HTTP API | https:/ |
| Shasta | Solidity HTTP API | https:/ |
| Shasta | gRPC | https:/ |
| Shasta | Solidity gRPC | https:/ |
| Nile | JSON-RPC | https:/ |
| Nile | HTTP API | https:/ |
| Nile | Solidity HTTP API | https:/ |
| Nile | gRPC | https:/ |
| Nile | Solidity gRPC | https:/ |
HTTP requests take your API key in the x-api-key header. See Authentication.
For example, this request sends eth_blockNumber to Tron Mainnet through the JSON-RPC interface:
curl '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_blockNumber","params":[],"id":1}'Don't have an API key?
Sign up to Dashboard and create your API keys today. Get higher limits and use debugging tools.
Tron RPC at a glance
- Networks: Mainnet (Tier 1), Shasta (Tier 3) and Nile (Tier 3)
- Chain ID: Mainnet
728126428(0x2b6653dc) · Shasta2494104990(0x94a9059e) · Nile3448148188(0xcd8690dc) - Interfaces: JSON-RPC, REST and gRPC
- Supported methods: 433 · JSON-RPC methods · REST API endpoints
- Native token:
TRX - Block explorers: Mainnet · Shasta · Nile
- Network status: Mainnet · Shasta · Nile
- Authentication: API key in the
x-api-keyheader, see Authentication
Try Tron RPC
Get the latest Tron block
Sends eth_blockNumber to Tron Mainnet through Tatum RPC Gateway and shows the latest block number.
Get the Tron node version
Sends web3_clientVersion to Tron Mainnet through Tatum RPC Gateway and shows the node version and status.
To try more Tron methods, open the Tron Postman collection, set the gateway-api-key variable of the Tatum Gateway environment to your API key, and send any request.
Tron RPC methods
Methods each Tron interface supports, listed live from Tatum RPC Gateway.
JSON-RPC
34 methods on Mainnet, Shasta and Nile. What each one does: Tron JSON-RPC methods.
buildTransaction, eth_blockNumber, eth_call, eth_callMany, eth_chainId, eth_estimateGas, eth_feeHistory, eth_gasPrice, eth_getBalance, eth_getBlockByHash, eth_getBlockByNumber, eth_getBlockTransactionCountByHash, eth_getBlockTransactionCountByNumber, eth_getCode, eth_getLogs, eth_getProof, eth_getStorageAt, eth_getTransactionByBlockHashAndIndex, eth_getTransactionByBlockNumberAndIndex, eth_getTransactionByHash, eth_getTransactionCount, eth_getTransactionReceipt, eth_getUncleByBlockHashAndIndex, eth_getUncleByBlockNumberAndIndex, eth_getUncleCountByBlockHash, eth_getUncleCountByBlockNumber, eth_maxPriorityFeePerGas, eth_sendRawTransaction, eth_signTypedData, eth_signTypedData_v3, eth_syncing, net_peerCount, net_version, web3_clientVersion
HTTP API
222 endpoints on Mainnet, Shasta and Nile. What each one does: Tron REST API endpoints.
GET /accountpermissionupdate, GET /broadcasthex, GET /broadcasttransaction, GET /cancelallunfreezev2, GET /clearabi, GET /createaccount, GET /createassetissue, GET /createshieldedcontractparameters, GET /createshieldedcontractparameterswithoutask, GET /createspendauthsig, GET /createtransaction, GET /createwitness, GET /delegateresource, GET /deploycontract, GET /estimateenergy, GET /exchangecreate, GET /exchangeinject, GET /exchangetransaction, GET /exchangewithdraw, GET /freezebalancev2, GET /getaccount, GET /getaccountbalance, GET /getaccountbyid, GET /getaccountnet, GET /getaccountresource, GET /getapprovedlist, GET /getassetissuebyaccount, GET /getassetissuebyid, GET /getassetissuebyname, GET /getassetissuelist, GET /getassetissuelistbyname, GET /getavailableunfreezecount, GET /getbandwidthprices, GET /getblock, GET /getblockbalance, GET /getblockbyid, GET /getblockbylatestnum, GET /getblockbylimitnext, GET /getblockbynum, GET /getBrokerage, GET /getburntrx, GET /getcandelegatedmaxsize, GET /getcanwithdrawunfreezeamount, GET /getchainparameters, GET /getcontract, GET /getcontractinfo, GET /getdelegatedresource, GET /getdelegatedresourceaccountindex, GET /getdelegatedresourceaccountindexv2, GET /getdelegatedresourcev2, GET /getdiversifier, GET /getenergyprices, GET /getexchangebyid, GET /getincomingviewingkey, GET /getmarketorderbyaccount, GET /getmarketorderbyid, GET /getmarketorderlistbypair, GET /getmarketpairlist, GET /getmarketpricebypair, GET /getnewshieldedaddress, GET /getnextmaintenancetime, GET /getnkfromnsk, GET /getnodeinfo, GET /getnowblock, GET /getpaginatedassetissuelist, GET /getpaginatedexchangelist, GET /getpaginatedproposallist, GET /getpendingsize, GET /getproposalbyid, GET /getrcm, GET /getReward, GET /getsignweight, GET /gettransactionbyid, GET /gettransactioncountbyblocknum, GET /gettransactionfrompending, GET /gettransactioninfobyblocknum, GET /gettransactioninfobyid, GET /gettransactionlistfrompending, GET /gettriggerinputforshieldedtrc20contract, GET /getzenpaymentaddress, GET /isshieldedtrc20contractnotespent, GET /listexchanges, GET /listnodes, GET /listproposals, GET /listwitnesses, GET /marketcancelorder, GET /marketsellasset, GET /participateassetissue, GET /proposalapprove, GET /proposalcreate, GET /proposaldelete, GET /scanshieldedtrc20notesbyivk, GET /scanshieldedtrc20notesbyovk, GET /setaccountid, GET /transferasset, GET /triggerconstantcontract, GET /triggersmartcontract, GET /undelegateresource, GET /unfreezeasset, GET /unfreezebalance, GET /unfreezebalancev2, GET /updateaccount, GET /updateasset, GET /updateBrokerage, GET /updateenergylimit, GET /updatesetting, GET /updatewitness, GET /validateaddress, GET /votewitnessaccount, GET /withdrawbalance, GET /withdrawexpireunfreeze, POST /accountpermissionupdate, POST /broadcasthex, POST /broadcasttransaction, POST /cancelallunfreezev2, POST /clearabi, POST /createaccount, POST /createassetissue, POST /createshieldedcontractparameters, POST /createshieldedcontractparameterswithoutask, POST /createspendauthsig, POST /createtransaction, POST /createwitness, POST /delegateresource, POST /deploycontract, POST /estimateenergy, POST /exchangecreate, POST /exchangeinject, POST /exchangetransaction, POST /exchangewithdraw, POST /freezebalancev2, POST /getaccount, POST /getaccountbalance, POST /getaccountbyid, POST /getaccountnet, POST /getaccountresource, POST /getapprovedlist, POST /getassetissuebyaccount, POST /getassetissuebyid, POST /getassetissuebyname, POST /getassetissuelist, POST /getassetissuelistbyname, POST /getavailableunfreezecount, POST /getbandwidthprices, POST /getblock, POST /getblockbalance, POST /getblockbyid, POST /getblockbylatestnum, POST /getblockbylimitnext, POST /getblockbynum, POST /getBrokerage, POST /getburntrx, POST /getcandelegatedmaxsize, POST /getcanwithdrawunfreezeamount, POST /getchainparameters, POST /getcontract, POST /getcontractinfo, POST /getdelegatedresource, POST /getdelegatedresourceaccountindex, POST /getdelegatedresourceaccountindexv2, POST /getdelegatedresourcev2, POST /getdiversifier, POST /getenergyprices, POST /getexchangebyid, POST /getincomingviewingkey, POST /getmarketorderbyaccount, POST /getmarketorderbyid, POST /getmarketorderlistbypair, POST /getmarketpairlist, POST /getmarketpricebypair, POST /getnewshieldedaddress, POST /getnextmaintenancetime, POST /getnkfromnsk, POST /getnodeinfo, POST /getnowblock, POST /getpaginatedassetissuelist, POST /getpaginatedexchangelist, POST /getpaginatedproposallist, POST /getpendingsize, POST /getproposalbyid, POST /getrcm, POST /getReward, POST /getsignweight, POST /gettransactionbyid, POST /gettransactioncountbyblocknum, POST /gettransactionfrompending, POST /gettransactioninfobyblocknum, POST /gettransactioninfobyid, POST /gettransactionlistfrompending, POST /gettriggerinputforshieldedtrc20contract, POST /getzenpaymentaddress, POST /isshieldedtrc20contractnotespent, POST /listexchanges, POST /listnodes, POST /listproposals, POST /listwitnesses, POST /marketcancelorder, POST /marketsellasset, POST /participateassetissue, POST /proposalapprove, POST /proposalcreate, POST /proposaldelete, POST /scanshieldedtrc20notesbyivk, POST /scanshieldedtrc20notesbyovk, POST /setaccountid, POST /transferasset, POST /triggerconstantcontract, POST /triggersmartcontract, POST /undelegateresource, POST /unfreezeasset, POST /unfreezebalance, POST /unfreezebalancev2, POST /updateaccount, POST /updateasset, POST /updateBrokerage, POST /updateenergylimit, POST /updatesetting, POST /updatewitness, POST /validateaddress, POST /votewitnessaccount, POST /withdrawbalance, POST /withdrawexpireunfreeze
Solidity HTTP API
86 endpoints on Mainnet, Shasta and Nile. What each one does: Tron REST API endpoints.
GET /estimateenergy, GET /getaccount, GET /getaccountbyid, GET /getassetissuebyid, GET /getassetissuebyname, GET /getassetissuelist, GET /getassetissuelistbyname, GET /getavailableunfreezecount, GET /getbandwidthprices, GET /getblock, GET /getblockbyid, GET /getblockbylatestnum, GET /getblockbylimitnext, GET /getblockbynum, GET /getBrokerage, GET /getburntrx, GET /getcandelegatedmaxsize, GET /getcanwithdrawunfreezeamount, GET /getdelegatedresource, GET /getdelegatedresourceaccountindex, GET /getdelegatedresourceaccountindexv2, GET /getdelegatedresourcev2, GET /getenergyprices, GET /getexchangebyid, GET /getmarketorderbyaccount, GET /getmarketorderbyid, GET /getmarketorderlistbypair, GET /getmarketpairlist, GET /getmarketpricebypair, GET /getnodeinfo, GET /getnowblock, GET /getpaginatedassetissuelist, GET /getReward, GET /gettransactionbyid, GET /gettransactioncountbyblocknum, GET /gettransactioninfobyblocknum, GET /gettransactioninfobyid, GET /isshieldedtrc20contractnotespent, GET /listexchanges, GET /listwitnesses, GET /scanshieldedtrc20notesbyivk, GET /scanshieldedtrc20notesbyovk, GET /triggerconstantcontract, POST /estimateenergy, POST /getaccount, POST /getaccountbyid, POST /getassetissuebyid, POST /getassetissuebyname, POST /getassetissuelist, POST /getassetissuelistbyname, POST /getavailableunfreezecount, POST /getbandwidthprices, POST /getblock, POST /getblockbyid, POST /getblockbylatestnum, POST /getblockbylimitnext, POST /getblockbynum, POST /getBrokerage, POST /getburntrx, POST /getcandelegatedmaxsize, POST /getcanwithdrawunfreezeamount, POST /getdelegatedresource, POST /getdelegatedresourceaccountindex, POST /getdelegatedresourceaccountindexv2, POST /getdelegatedresourcev2, POST /getenergyprices, POST /getexchangebyid, POST /getmarketorderbyaccount, POST /getmarketorderbyid, POST /getmarketorderlistbypair, POST /getmarketpairlist, POST /getmarketpricebypair, POST /getnodeinfo, POST /getnowblock, POST /getpaginatedassetissuelist, POST /getReward, POST /gettransactionbyid, POST /gettransactioncountbyblocknum, POST /gettransactioninfobyblocknum, POST /gettransactioninfobyid, POST /isshieldedtrc20contractnotespent, POST /listexchanges, POST /listwitnesses, POST /scanshieldedtrc20notesbyivk, POST /scanshieldedtrc20notesbyovk, POST /triggerconstantcontract
gRPC
135 methods on Mainnet, Shasta and Nile.
grpc.*(2):grpc.reflection.v1.ServerReflection/ServerReflectionInfo,grpc.reflection.v1alpha.ServerReflection/ServerReflectionInfoprotocol.*(133):protocol.Database/GetBlockByNum,protocol.Database/getBlockReference,protocol.Database/GetDynamicProperties,protocol.Database/GetNowBlock,protocol.Wallet/AccountPermissionUpdate,protocol.Wallet/BroadcastTransaction,protocol.Wallet/CancelAllUnfreezeV2,protocol.Wallet/ClearContractABI,protocol.Wallet/CreateAccount,protocol.Wallet/CreateAccount2,protocol.Wallet/CreateAssetIssue,protocol.Wallet/CreateAssetIssue2,protocol.Wallet/CreateCommonTransaction,protocol.Wallet/CreateShieldedContractParametersWithoutAsk,protocol.Wallet/CreateTransaction,protocol.Wallet/CreateTransaction2,protocol.Wallet/CreateWitness,protocol.Wallet/CreateWitness2,protocol.Wallet/DelegateResource,protocol.Wallet/DeployContract,protocol.Wallet/EstimateEnergy,protocol.Wallet/ExchangeCreate,protocol.Wallet/ExchangeInject,protocol.Wallet/ExchangeTransaction,protocol.Wallet/ExchangeWithdraw,protocol.Wallet/FreezeBalance,protocol.Wallet/FreezeBalance2,protocol.Wallet/FreezeBalanceV2,protocol.Wallet/GetAccount,protocol.Wallet/GetAccountBalance,protocol.Wallet/GetAccountById,protocol.Wallet/GetAccountNet,protocol.Wallet/GetAccountResource,protocol.Wallet/GetAssetIssueByAccount,protocol.Wallet/GetAssetIssueById,protocol.Wallet/GetAssetIssueByName,protocol.Wallet/GetAssetIssueList,protocol.Wallet/GetAssetIssueListByName,protocol.Wallet/GetAvailableUnfreezeCount,protocol.Wallet/GetBandwidthPrices,protocol.Wallet/GetBlock,protocol.Wallet/GetBlockBalanceTrace,protocol.Wallet/GetBlockById,protocol.Wallet/GetBlockByLatestNum,protocol.Wallet/GetBlockByLatestNum2,protocol.Wallet/GetBlockByLimitNext,protocol.Wallet/GetBlockByLimitNext2,protocol.Wallet/GetBlockByNum,protocol.Wallet/GetBlockByNum2,protocol.Wallet/GetBrokerageInfo,protocol.Wallet/GetBurnTrx,protocol.Wallet/GetCanDelegatedMaxSize,protocol.Wallet/GetCanWithdrawUnfreezeAmount,protocol.Wallet/GetChainParameters,protocol.Wallet/GetContract,protocol.Wallet/GetContractInfo,protocol.Wallet/GetDelegatedResource,protocol.Wallet/GetDelegatedResourceAccountIndex,protocol.Wallet/GetDelegatedResourceAccountIndexV2,protocol.Wallet/GetDelegatedResourceV2,protocol.Wallet/GetDiversifier,protocol.Wallet/GetEnergyPrices,protocol.Wallet/GetExchangeById,protocol.Wallet/GetIncomingViewingKey,protocol.Wallet/GetMarketOrderByAccount,protocol.Wallet/GetMarketOrderById,protocol.Wallet/GetMarketOrderListByPair,protocol.Wallet/GetMarketPairList,protocol.Wallet/GetMarketPriceByPair,protocol.Wallet/GetMemoFee,protocol.Wallet/GetNextMaintenanceTime,protocol.Wallet/GetNkFromNsk,protocol.Wallet/GetNodeInfo,protocol.Wallet/GetNowBlock,protocol.Wallet/GetNowBlock2,protocol.Wallet/GetPaginatedAssetIssueList,protocol.Wallet/GetPaginatedExchangeList,protocol.Wallet/GetPaginatedNowWitnessList,protocol.Wallet/GetPaginatedProposalList,protocol.Wallet/GetPendingSize,protocol.Wallet/GetProposalById,protocol.Wallet/GetRcm,protocol.Wallet/GetRewardInfo,protocol.Wallet/GetTransactionApprovedList,protocol.Wallet/GetTransactionById,protocol.Wallet/GetTransactionCountByBlockNum,protocol.Wallet/GetTransactionFromPending,protocol.Wallet/GetTransactionInfoByBlockNum,protocol.Wallet/GetTransactionInfoById,protocol.Wallet/GetTransactionListFromPending,protocol.Wallet/GetTransactionSignWeight,protocol.Wallet/GetTriggerInputForShieldedTRC20Contract,protocol.Wallet/GetZenPaymentAddress,protocol.Wallet/IsShieldedTRC20ContractNoteSpent,protocol.Wallet/ListExchanges,protocol.Wallet/ListNodes,protocol.Wallet/ListProposals,protocol.Wallet/ListWitnesses,protocol.Wallet/MarketCancelOrder,protocol.Wallet/MarketSellAsset,protocol.Wallet/ParticipateAssetIssue,protocol.Wallet/ParticipateAssetIssue2,protocol.Wallet/ProposalApprove,protocol.Wallet/ProposalCreate,protocol.Wallet/ProposalDelete,protocol.Wallet/ScanShieldedTRC20NotesByIvk,protocol.Wallet/ScanShieldedTRC20NotesByOvk,protocol.Wallet/SetAccountId,protocol.Wallet/TotalTransaction,protocol.Wallet/TransferAsset,protocol.Wallet/TransferAsset2,protocol.Wallet/TriggerConstantContract,protocol.Wallet/TriggerContract,protocol.Wallet/UnDelegateResource,protocol.Wallet/UnfreezeAsset,protocol.Wallet/UnfreezeAsset2,protocol.Wallet/UnfreezeBalance,protocol.Wallet/UnfreezeBalance2,protocol.Wallet/UnfreezeBalanceV2,protocol.Wallet/UpdateAccount,protocol.Wallet/UpdateAccount2,protocol.Wallet/UpdateAsset,protocol.Wallet/UpdateAsset2,protocol.Wallet/UpdateBrokerage,protocol.Wallet/UpdateEnergyLimit,protocol.Wallet/UpdateSetting,protocol.Wallet/UpdateWitness,protocol.Wallet/UpdateWitness2,protocol.Wallet/VoteWitnessAccount,protocol.Wallet/VoteWitnessAccount2,protocol.Wallet/WithdrawBalance,protocol.Wallet/WithdrawBalance2,protocol.Wallet/WithdrawExpireUnfreeze
Solidity gRPC
48 methods on Mainnet, Shasta and Nile.
grpc.*(2):grpc.reflection.v1.ServerReflection/ServerReflectionInfo,grpc.reflection.v1alpha.ServerReflection/ServerReflectionInfoprotocol.*(46):protocol.Database/GetBlockByNum,protocol.Database/getBlockReference,protocol.Database/GetDynamicProperties,protocol.Database/GetNowBlock,protocol.WalletSolidity/EstimateEnergy,protocol.WalletSolidity/GetAccount,protocol.WalletSolidity/GetAccountById,protocol.WalletSolidity/GetAssetIssueById,protocol.WalletSolidity/GetAssetIssueByName,protocol.WalletSolidity/GetAssetIssueList,protocol.WalletSolidity/GetAssetIssueListByName,protocol.WalletSolidity/GetAvailableUnfreezeCount,protocol.WalletSolidity/GetBandwidthPrices,protocol.WalletSolidity/GetBlock,protocol.WalletSolidity/GetBlockByNum,protocol.WalletSolidity/GetBlockByNum2,protocol.WalletSolidity/GetBrokerageInfo,protocol.WalletSolidity/GetBurnTrx,protocol.WalletSolidity/GetCanDelegatedMaxSize,protocol.WalletSolidity/GetCanWithdrawUnfreezeAmount,protocol.WalletSolidity/GetDelegatedResource,protocol.WalletSolidity/GetDelegatedResourceAccountIndex,protocol.WalletSolidity/GetDelegatedResourceAccountIndexV2,protocol.WalletSolidity/GetDelegatedResourceV2,protocol.WalletSolidity/GetEnergyPrices,protocol.WalletSolidity/GetExchangeById,protocol.WalletSolidity/GetMarketOrderByAccount,protocol.WalletSolidity/GetMarketOrderById,protocol.WalletSolidity/GetMarketOrderListByPair,protocol.WalletSolidity/GetMarketPairList,protocol.WalletSolidity/GetMarketPriceByPair,protocol.WalletSolidity/GetNowBlock,protocol.WalletSolidity/GetNowBlock2,protocol.WalletSolidity/GetPaginatedAssetIssueList,protocol.WalletSolidity/GetPaginatedNowWitnessList,protocol.WalletSolidity/GetRewardInfo,protocol.WalletSolidity/GetTransactionById,protocol.WalletSolidity/GetTransactionCountByBlockNum,protocol.WalletSolidity/GetTransactionInfoByBlockNum,protocol.WalletSolidity/GetTransactionInfoById,protocol.WalletSolidity/IsShieldedTRC20ContractNoteSpent,protocol.WalletSolidity/ListExchanges,protocol.WalletSolidity/ListWitnesses,protocol.WalletSolidity/ScanShieldedTRC20NotesByIvk,protocol.WalletSolidity/ScanShieldedTRC20NotesByOvk,protocol.WalletSolidity/TriggerConstantContract
Every endpoint also lists its methods at runtime: /_methods (JSON) and /llms.txt (text), for example Tron Mainnet /_methods.
Method unavailable?If you need a method we don't support yet, contact support.
Related
- Tron RPC nodes on tatum.io: plans, pricing and dedicated nodes
- Supported Blockchains: every chain on Tatum RPC Gateway and its network tiers
- Tron official website: chain documentation
Testing without an API key? Free public endpoints are listed on Tron RPC at FREERPC.com.