Tron REST API

The TRON REST (HTTP) API is TRON's native interface. Every endpoint is an HTTP POST to /wallet/{method} on the Fullnode, with a JSON body and a JSON response. Read endpoints are also served by the Solidity node at /walletsolidity/{method}, which returns only confirmed, irreversible data — use it for balance and payment verification.

Base URL

bashhttps://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/wallet/{method}
bashhttps://shared.us-east-1.getblock.io/<ACCESS_TOKEN/wallet/{method}
bashhttps://shared.ap-southeast-1.getblock.io/<ACCESS_TOKEN/wallet/{method}

Replace <ACCESS-TOKEN> with the access token from the GetBlock dashboard. Addresses may be supplied in base58 (T...) form by setting visible to true, or in hex (41...) form otherwise. TRX amounts are in SUN.

Account

MethodDescription
getaccountAccount data, balance, permissions, assets
getaccountresourceEnergy and Bandwidth resource state
getaccountnetBandwidth (network) state

Block

MethodDescription
getnowblockThe latest block
getblockbynumA block by height
getblockbylimitnextA range of blocks

Transaction

MethodDescription
gettransactionbyidA transaction by id
gettransactioninfobyidExecution result, energy, and logs
createtransactionBuild an unsigned TRX transfer
broadcasttransactionBroadcast a signed transaction

Resources (Stake 2.0)

MethodDescription
freezebalancev2Stake TRX for Energy or Bandwidth
unfreezebalancev2Unstake TRX
delegateresourceDelegate a resource to another account

Smart Contract

MethodDescription
triggerconstantcontractRead-only contract call (e.g. balanceOf)
triggersmartcontractBuild a state-changing contract call
getcontractContract metadata and ABI
estimateenergyEstimate Energy for a call

Chain

MethodDescription
getchainparametersOn-chain governance parameters
getnodeinfoNode diagnostics and sync state

Support

For technical support and questions:

See Also