See the Tron RPC API connection guide.
GET
GET| Method | Notes | Compute Unit Value |
|---|---|---|
GET /wallet/getassetissuelist | Returns the list of TRC-10 assets. | 20 |
GET /wallet/getbandwidthprices | Returns current bandwidth price information. | 5 |
GET /wallet/getburntrx | Returns the total amount of burned TRX. | 5 |
GET /wallet/getchainparameters | Returns the current chain parameters. | 5 |
GET /wallet/getdiversifier | Returns a diversifier for a shielded TRC20 address. | 10 |
GET /wallet/getenergyprices | Returns current Energy price information. | 5 |
GET /wallet/getnextmaintenancetime | Returns the timestamp of the next maintenance period. | 5 |
GET /wallet/getpendingsize | Returns the number of pending transactions. | 5 |
GET /wallet/gettransactionlistfrompending | Returns transactions currently in the pending pool. | 20 |
GET /wallet/listexchanges | Returns the list of TRON exchanges. | 20 |
GET /wallet/listproposals | Returns the list of governance proposals. | 20 |
GET /wallet/listwitnesses | Returns the list of Super Representatives. | 20 |
Accounts
Accounts| Method | Notes | Compute Unit Value |
|---|---|---|
POST /wallet/accountpermissionupdate | Creates a transaction to update an account's permissions. | 25 |
POST /wallet/createaccount | Creates a transaction to create a new account. | 25 |
POST /wallet/updateaccount | Creates a transaction to update account information. | 25 |
Transactions
Transactions| Method | Notes | Compute Unit Value |
|---|---|---|
POST /wallet/broadcasthex | Broadcasts a signed transaction encoded as hexadecimal data. | 100 |
POST /wallet/broadcasttransaction | Broadcasts a signed transaction object. | 100 |
POST /wallet/createtransaction | Creates a native TRX transfer transaction. | 25 |
Smart contracts
Smart contracts| Method | Notes | Compute Unit Value |
|---|---|---|
POST /wallet/clearabi | Creates a transaction to clear a contract ABI. | 25 |
POST /wallet/deploycontract | Creates a transaction to deploy a smart contract. | 100 |
POST /wallet/estimateenergy | Estimates the Energy required to execute a contract call. | 10 |
POST /wallet/triggerconstantcontract | Executes a constant contract call without changing chain state. | 50 |
POST /wallet/triggersmartcontract | Creates a transaction to invoke a smart contract. | 100 |
POST /wallet/getcontract | Returns a smart contract by address. | 10 |
POST /wallet/getcontractinfo | Returns detailed information about a smart contract. | 5 |
POST /wallet/updatesetting | Creates a transaction to update a contract setting. | 25 |
POST /wallet/updateenergylimit | Creates a transaction to update a contract Energy limit. | 25 |
Account resources
Account resources| Method | Notes | Compute Unit Value |
|---|---|---|
POST /wallet/cancelallunfreezev2 | Creates a transaction to cancel all pending Stake 2.0 unfreezes. | 25 |
POST /wallet/freezebalancev2 | Creates a transaction to stake TRX under Stake 2.0. | 25 |
POST /wallet/getaccount | Returns account information for an address. | 20 |
POST /wallet/getaccountbalance | Returns the balance of an account. | 10 |
POST /wallet/getaccountnet | Returns bandwidth usage information for an account. | 10 |
POST /wallet/getaccountresource | Returns resource information for an account. | 10 |
POST /wallet/getavailableunfreezecount | Returns the remaining number of available unfreeze operations. | 10 |
POST /wallet/getcandelegatedmaxsize | Returns the maximum resource amount an account can delegate. | 5 |
POST /wallet/getcanwithdrawunfreezeamount | Returns the amount currently available to withdraw after unfreezing. | 10 |
POST /wallet/getdelegatedresource | Returns resources delegated from one address to another. | 10 |
POST /wallet/getdelegatedresourceaccountindex | Returns delegation index information for an account. | 5 |
POST /wallet/getdelegatedresourcev2 | Returns Stake 2.0 delegated-resource information. | 10 |
POST /wallet/getdelegatedresourceaccountindexv2 | Returns Stake 2.0 delegation index information for an account. | 5 |
POST /wallet/delegateresource | Creates a transaction to delegate resources to another account. | 25 |
POST /wallet/undelegateresource | Creates a transaction to undelegate resources from another account. | 25 |
POST /wallet/unfreezebalancev2 | Creates a transaction to start a Stake 2.0 unfreeze. | 25 |
POST /wallet/withdrawexpireunfreeze | Creates a transaction to withdraw expired unfrozen TRX. | 25 |
DEX exchange
DEX exchange| Method | Notes | Compute Unit Value |
|---|---|---|
POST /wallet/getexchangebyid | Returns an exchange identified by ID. | 10 |
POST /wallet/exchangecreate | Creates a transaction to create an exchange. | 25 |
POST /wallet/exchangeinject | Creates a transaction to add tokens to an exchange. | 25 |
POST /wallet/exchangetransaction | Creates a transaction to trade through an exchange. | 25 |
POST /wallet/exchangewithdraw | Creates a transaction to withdraw tokens from an exchange. | 25 |
TRC10 tokens
TRC10 tokens| Method | Notes | Compute Unit Value |
|---|---|---|
POST /wallet/createassetissue | Creates a transaction to issue a TRC-10 asset. | 25 |
POST /wallet/getassetissuebyaccount | Returns TRC-10 assets issued by an account. | 10 |
POST /wallet/getassetissuebyid | Returns a TRC-10 asset by ID. | 10 |
POST /wallet/getassetissuebyname | Returns a TRC-10 asset by name. | 10 |
POST /wallet/getassetissuelist | Returns the list of TRC-10 assets. | 20 |
POST /wallet/getassetissuelistbyname | Returns TRC-10 assets matching a name. | 20 |
POST /wallet/getpaginatedassetissuelist | Returns a paginated list of TRC-10 assets. | 10 |
POST /wallet/participateassetissue | Creates a transaction to participate in a TRC-10 asset issue. | 25 |
POST /wallet/transferasset | Creates a transaction to transfer a TRC-10 asset. | 25 |
POST /wallet/unfreezeasset | Creates a transaction to unfreeze a TRC-10 asset. | 25 |
POST /wallet/updateasset | Creates a transaction to update a TRC-10 asset. | 25 |
Network queries
Network queries| Method | Notes | Compute Unit Value |
|---|---|---|
POST /wallet/getapprovedlist | Returns the approval list for a transaction. | 10 |
POST /wallet/getblock | Returns a block using the supplied selector. | 50 |
POST /wallet/getblockbalance | Returns balance information for a specified block. | 10 |
POST /wallet/getblockbyid | Returns a block identified by block ID. | 50 |
POST /wallet/getblockbylatestnum | Returns the requested number of latest blocks. | 50 |
POST /wallet/getblockbylimitnext | Returns blocks in a requested numeric range. | 50 |
POST /wallet/getblockbynum | Returns a block identified by block number. | 50 |
POST /wallet/getburntrx | Returns the total amount of burned TRX. | 5 |
POST /wallet/getchainparameters | Returns the current chain parameters. | 5 |
POST /wallet/getnowblock | Returns the latest block. | 50 |
POST /wallet/gettransactionbyid | Returns a transaction identified by ID. | 20 |
POST /wallet/gettransactionfrompending | Returns a pending transaction identified by ID. | 10 |
POST /wallet/gettransactioninfobyblocknum | Returns transaction information for a block number. | 10 |
POST /wallet/gettransactioninfobyid | Returns execution information for a transaction ID. | 10 |
Proposals
Proposals| Method | Notes | Compute Unit Value |
|---|---|---|
POST /wallet/getproposalbyid | Returns a governance proposal identified by ID. | 10 |
POST /wallet/proposalapprove | Creates a transaction to approve or disapprove a proposal. | 25 |
POST /wallet/proposalcreate | Creates a transaction to create a governance proposal. | 25 |
POST /wallet/proposaldelete | Creates a transaction to delete a proposal. | 25 |
Voting and Super Representatives
Voting and Super Representatives| Method | Notes | Compute Unit Value |
|---|---|---|
POST /wallet/listwitnesses | Returns the list of Super Representatives. | 20 |
POST /wallet/createwitness | Creates a transaction to register a Super Representative candidate. | 25 |
POST /wallet/updatewitness | Creates a transaction to update Super Representative information. | 25 |
POST /wallet/getBrokerage | Returns a Super Representative's brokerage ratio. | 10 |
POST /wallet/updateBrokerage | Creates a transaction to update a Super Representative's brokerage ratio. | 25 |
POST /wallet/votewitnessaccount | Creates a transaction to vote for Super Representatives. | 25 |
POST /wallet/getreward | Returns the account's unclaimed voting reward. | 10 |
POST /wallet/withdrawbalance | Creates a transaction to withdraw a voting reward. | 10 |
Shielded TRC20
Shielded TRC20| Method | Notes | Compute Unit Value |
|---|---|---|
POST /wallet/getdiversifier | Returns a diversifier for a shielded TRC20 address. | 10 |
POST /wallet/getincomingviewingkey | Derives an incoming viewing key from a spending key. | 10 |
POST /wallet/getnkfromnsk | Derives a nullifier key from a nullifier spending key. | 10 |
POST /wallet/gettriggerinputforshieldedtrc20contract | Returns trigger input for a shielded TRC20 contract call. | 10 |
POST /wallet/getzenpaymentaddress | Derives a shielded payment address. | 10 |
POST /wallet/isshieldedtrc20contractnotespent | Checks whether a shielded TRC20 note has been spent. | 5 |
POST /wallet/scanshieldedtrc20notesbyivk | Scans shielded TRC20 notes using an incoming viewing key. | 10 |
POST /wallet/scanshieldedtrc20notesbyovk | Scans shielded TRC20 notes using an outgoing viewing key. | 10 |
Address utilities
Address utilities| Method | Notes | Compute Unit Value |
|---|---|---|
POST /wallet/validateaddress | Validates a TRON address. | 5 |
