Tron RPC

📘

See the Tron RPC API connection guide.

eth

MethodNotesCompute Unit Value
eth_blockNumberReturns the number of the most recent TRON block.1
eth_callExecutes a message call against the latest state without creating a transaction.10
eth_chainIdReturns the chain identifier as a hexadecimal quantity.1
eth_estimateGasEstimates the Energy required to execute a transaction or call.50
eth_gasPriceReturns the current gas price as a hexadecimal quantity.5
eth_getBalanceReturns the balance of a TRON account in hexadecimal form.5
eth_getBlockByHashReturns a block identified by hash.5
eth_getBlockByNumberReturns a block identified by number or supported block tag.5
eth_getBlockTransactionCountByHashReturns the number of transactions in a block identified by hash.5
eth_getBlockTransactionCountByNumberReturns the number of transactions in a block identified by number.5
eth_getCodeReturns the code stored at an address.5
eth_getStorageAtReturns the value at a storage position for an address.5
eth_getTransactionByBlockHashAndIndexReturns a transaction by block hash and transaction index.5
eth_getTransactionByBlockNumberAndIndexReturns a transaction by block number and transaction index.5
eth_getTransactionByHashReturns a transaction identified by hash.5
eth_getTransactionReceiptReturns the receipt for a transaction hash.5
eth_getLogsReturns logs that match a filter object.50
eth_protocolVersionReturns the JSON-RPC protocol version reported by the node.1
eth_syncingReturns synchronization status or false when the node is not syncing.1

net

MethodNotesCompute Unit Value
net_peerCountReturns the number of peers connected to the node.1
net_versionReturns the current network identifier.1

web3

MethodNotesCompute Unit Value
web3_clientVersionReturns the current client version string.1
web3_sha3Returns the Keccak-256 hash of supplied data.1