Tron REST Methods

šŸ“˜

See the Tron RPC API connection guide.

GET

MethodNotesCompute Unit Value
GET /wallet/getassetissuelistReturns the list of TRC-10 assets.20
GET /wallet/getbandwidthpricesReturns current bandwidth price information.5
GET /wallet/getburntrxReturns the total amount of burned TRX.5
GET /wallet/getchainparametersReturns the current chain parameters.5
GET /wallet/getdiversifierReturns a diversifier for a shielded TRC20 address.10
GET /wallet/getenergypricesReturns current Energy price information.5
GET /wallet/getnextmaintenancetimeReturns the timestamp of the next maintenance period.5
GET /wallet/getpendingsizeReturns the number of pending transactions.5
GET /wallet/gettransactionlistfrompendingReturns transactions currently in the pending pool.20
GET /wallet/listexchangesReturns the list of TRON exchanges.20
GET /wallet/listproposalsReturns the list of governance proposals.20
GET /wallet/listwitnessesReturns the list of Super Representatives.20

Accounts

MethodNotesCompute Unit Value
POST /wallet/accountpermissionupdateCreates a transaction to update an account's permissions.25
POST /wallet/createaccountCreates a transaction to create a new account.25
POST /wallet/updateaccountCreates a transaction to update account information.25

Transactions

MethodNotesCompute Unit Value
POST /wallet/broadcasthexBroadcasts a signed transaction encoded as hexadecimal data.100
POST /wallet/broadcasttransactionBroadcasts a signed transaction object.100
POST /wallet/createtransactionCreates a native TRX transfer transaction.25

Smart contracts

MethodNotesCompute Unit Value
POST /wallet/clearabiCreates a transaction to clear a contract ABI.25
POST /wallet/deploycontractCreates a transaction to deploy a smart contract.100
POST /wallet/estimateenergyEstimates the Energy required to execute a contract call.10
POST /wallet/triggerconstantcontractExecutes a constant contract call without changing chain state.50
POST /wallet/triggersmartcontractCreates a transaction to invoke a smart contract.100
POST /wallet/getcontractReturns a smart contract by address.10
POST /wallet/getcontractinfoReturns detailed information about a smart contract.5
POST /wallet/updatesettingCreates a transaction to update a contract setting.25
POST /wallet/updateenergylimitCreates a transaction to update a contract Energy limit.25

Account resources

MethodNotesCompute Unit Value
POST /wallet/cancelallunfreezev2Creates a transaction to cancel all pending Stake 2.0 unfreezes.25
POST /wallet/freezebalancev2Creates a transaction to stake TRX under Stake 2.0.25
POST /wallet/getaccountReturns account information for an address.20
POST /wallet/getaccountbalanceReturns the balance of an account.10
POST /wallet/getaccountnetReturns bandwidth usage information for an account.10
POST /wallet/getaccountresourceReturns resource information for an account.10
POST /wallet/getavailableunfreezecountReturns the remaining number of available unfreeze operations.10
POST /wallet/getcandelegatedmaxsizeReturns the maximum resource amount an account can delegate.5
POST /wallet/getcanwithdrawunfreezeamountReturns the amount currently available to withdraw after unfreezing.10
POST /wallet/getdelegatedresourceReturns resources delegated from one address to another.10
POST /wallet/getdelegatedresourceaccountindexReturns delegation index information for an account.5
POST /wallet/getdelegatedresourcev2Returns Stake 2.0 delegated-resource information.10
POST /wallet/getdelegatedresourceaccountindexv2Returns Stake 2.0 delegation index information for an account.5
POST /wallet/delegateresourceCreates a transaction to delegate resources to another account.25
POST /wallet/undelegateresourceCreates a transaction to undelegate resources from another account.25
POST /wallet/unfreezebalancev2Creates a transaction to start a Stake 2.0 unfreeze.25
POST /wallet/withdrawexpireunfreezeCreates a transaction to withdraw expired unfrozen TRX.25

DEX exchange

MethodNotesCompute Unit Value
POST /wallet/getexchangebyidReturns an exchange identified by ID.10
POST /wallet/exchangecreateCreates a transaction to create an exchange.25
POST /wallet/exchangeinjectCreates a transaction to add tokens to an exchange.25
POST /wallet/exchangetransactionCreates a transaction to trade through an exchange.25
POST /wallet/exchangewithdrawCreates a transaction to withdraw tokens from an exchange.25

TRC10 tokens

MethodNotesCompute Unit Value
POST /wallet/createassetissueCreates a transaction to issue a TRC-10 asset.25
POST /wallet/getassetissuebyaccountReturns TRC-10 assets issued by an account.10
POST /wallet/getassetissuebyidReturns a TRC-10 asset by ID.10
POST /wallet/getassetissuebynameReturns a TRC-10 asset by name.10
POST /wallet/getassetissuelistReturns the list of TRC-10 assets.20
POST /wallet/getassetissuelistbynameReturns TRC-10 assets matching a name.20
POST /wallet/getpaginatedassetissuelistReturns a paginated list of TRC-10 assets.10
POST /wallet/participateassetissueCreates a transaction to participate in a TRC-10 asset issue.25
POST /wallet/transferassetCreates a transaction to transfer a TRC-10 asset.25
POST /wallet/unfreezeassetCreates a transaction to unfreeze a TRC-10 asset.25
POST /wallet/updateassetCreates a transaction to update a TRC-10 asset.25

Network queries

MethodNotesCompute Unit Value
POST /wallet/getapprovedlistReturns the approval list for a transaction.10
POST /wallet/getblockReturns a block using the supplied selector.50
POST /wallet/getblockbalanceReturns balance information for a specified block.10
POST /wallet/getblockbyidReturns a block identified by block ID.50
POST /wallet/getblockbylatestnumReturns the requested number of latest blocks.50
POST /wallet/getblockbylimitnextReturns blocks in a requested numeric range.50
POST /wallet/getblockbynumReturns a block identified by block number.50
POST /wallet/getburntrxReturns the total amount of burned TRX.5
POST /wallet/getchainparametersReturns the current chain parameters.5
POST /wallet/getnowblockReturns the latest block.50
POST /wallet/gettransactionbyidReturns a transaction identified by ID.20
POST /wallet/gettransactionfrompendingReturns a pending transaction identified by ID.10
POST /wallet/gettransactioninfobyblocknumReturns transaction information for a block number.10
POST /wallet/gettransactioninfobyidReturns execution information for a transaction ID.10

Proposals

MethodNotesCompute Unit Value
POST /wallet/getproposalbyidReturns a governance proposal identified by ID.10
POST /wallet/proposalapproveCreates a transaction to approve or disapprove a proposal.25
POST /wallet/proposalcreateCreates a transaction to create a governance proposal.25
POST /wallet/proposaldeleteCreates a transaction to delete a proposal.25

Voting and Super Representatives

MethodNotesCompute Unit Value
POST /wallet/listwitnessesReturns the list of Super Representatives.20
POST /wallet/createwitnessCreates a transaction to register a Super Representative candidate.25
POST /wallet/updatewitnessCreates a transaction to update Super Representative information.25
POST /wallet/getBrokerageReturns a Super Representative's brokerage ratio.10
POST /wallet/updateBrokerageCreates a transaction to update a Super Representative's brokerage ratio.25
POST /wallet/votewitnessaccountCreates a transaction to vote for Super Representatives.25
POST /wallet/getrewardReturns the account's unclaimed voting reward.10
POST /wallet/withdrawbalanceCreates a transaction to withdraw a voting reward.10

Shielded TRC20

MethodNotesCompute Unit Value
POST /wallet/getdiversifierReturns a diversifier for a shielded TRC20 address.10
POST /wallet/getincomingviewingkeyDerives an incoming viewing key from a spending key.10
POST /wallet/getnkfromnskDerives a nullifier key from a nullifier spending key.10
POST /wallet/gettriggerinputforshieldedtrc20contractReturns trigger input for a shielded TRC20 contract call.10
POST /wallet/getzenpaymentaddressDerives a shielded payment address.10
POST /wallet/isshieldedtrc20contractnotespentChecks whether a shielded TRC20 note has been spent.5
POST /wallet/scanshieldedtrc20notesbyivkScans shielded TRC20 notes using an incoming viewing key.10
POST /wallet/scanshieldedtrc20notesbyovkScans shielded TRC20 notes using an outgoing viewing key.10

Address utilities

MethodNotesCompute Unit Value
POST /wallet/validateaddressValidates a TRON address.5