tron/src/provider/methods/methods library

Classes

TronHTTPMethods
TronRequestAccountPermissionUpdate
Update the account's permission (developers.tron.network)https://developers.tron.network/reference/accountpermissionupdate.
TronRequestBroadcastHex
Broadcast the protobuf encoded transaction hex string after sign (developers.tron.network)https://developers.tron.network/reference/broadcasthex.
TronRequestBroadcastTransaction
Broadcast the signed transaction developers.tron.network.
TronRequestCancelAllUnfreezeV2
Cancel unstakings, all unstaked funds still in the waiting period will be re-staked, all unstaked funds that exceeded the 14-day waiting period will be automatically withdrawn to the owner’s account developers.tron.network.
TronRequestClearAbi
To clear the ABI info of a smart contract. developers.tron.network.
TronRequestCreateAccount
Activate an account. developers.tron.network.
TronRequestCreateAssetIssue
Issue a TRC10 token. developers.tron.network.
TronRequestCreateShieldedContractParameters
CreateShieldedContractParameters. developers.tron.network.
TronRequestCreateSpendAuthSig
CreateSpendAuthSig. developers.tron.network.
TronRequestCreateTransaction
Create a TRX transfer transaction. If to_address does not exist, then create the account on the blockchain. developers.tron.network.
TronRequestDelegateResource
Delegate bandwidth or energy resources to other accounts in Stake2.0. developers.tron.network.
TronRequestDeployContract
Deploys a contract. Returns TransactionExtention, which contains an unsigned transaction. developers.tron.network.
TronRequestEstimateEnergy
Estimate the energy required for the successful execution of smart contract transactions or deploying a contract. developers.tron.network.
TronRequestExchangeCreate
Creates a trading pair. developers.tron.network.
TronRequestExchangeInject
Injects capital into the transaction. The purpose of injecting capital into the trading pair is to prevent price fluctuation from affecting the transaction. developers.tron.network.
TronRequestExchangeTransaction
Participate the transaction of exchange pair developers.tron.network.
TronRequestExchangeWithdraw
Withdraws the transaction pair. developers.tron.network.
TronRequestFreezeBalance
FreezeBalance This interface has been deprecated, please use FreezeBalanceV2 to stake TRX to obtain resources. developers.tron.network.
TronRequestFreezeBalanceV2
In Stake2.0, stake an amount of TRX to obtain bandwidth or energy, and obtain equivalent TRON Power(TP) according to the staked amount. developers.tron.network.
TronRequestGetAccount
Query information about an account, including TRX balance, TRC-10 balances, stake information and vote information and permissions etc. developers.tron.network.
TronRequestGetAccountBalance
Get the account balance in a specific block developers.tron.network.
TronRequestGetAccountNet
Query bandwidth information. developers.tron.network.
TronRequestGetAccountResource
Query the resource information of an account(bandwidth,energy,etc). developers.tron.network.
TronRequestGetAkFromAsk
GetAkFromAsk. developers.tron.network.
TronRequestGetApprovedList
Query the account address list which signed the transaction. developers.tron.network.
TronRequestGetAssetIssueByAccount
Query the TRC10 token information issued by an account. developers.tron.network.
TronRequestGetAssetIssueById
Query a token by token id. Returns the token object, which contains the token name.. developers.tron.network.
TronRequestGetAssetIssueByName
Query a token by name, returns token info... developers.tron.network.
TronRequestGetAssetIssueList
Query the list of all the TRC10 tokens. developers.tron.network.
TronRequestGetAssetIssueListByName
Query the list of all the TRC10 tokens by a name. developers.tron.network.
TronRequestGetAvailableUnfreezeCount
Remaining times of executing unstake operation in Stake2.0 developers.tron.network.
TronRequestGetBandwidthPrices
Query historical bandwidth unit price. developers.tron.network.
TronRequestGetBlock
Query block header information or entire block information according to block height or block hash developers.tron.network.
TronRequestGetBlockBalance
Get all balance change operations in a block. developers.tron.network.
TronRequestGetBlockById
Query block by ID(block hash). developers.tron.network.
TronRequestGetBlockByLatestNum
Returns a list of block objects. developers.tron.network.
TronRequestGetBlockByLimitNext
Returns the list of Block Objects included in the 'Block Height' range specified. developers.tron.network.
TronRequestGetBlockByNum
Returns the Block Object corresponding to the 'Block Height' specified (number of blocks preceding it). developers.tron.network.
TronRequestGetBrokerage
Get SR brokerage ratio developers.tron.network.
TronRequestGetBurnTrx
Query the amount of TRX burned due to on-chain transaction fees since No. 54 Committee Proposal took effect developers.tron.network.
TronRequestGetCanDelegatedMaxSize
In Stake2.0, query the amount of delegatable resources share of the specified resource type for an address, unit is sun. developers.tron.network.
TronRequestGetCanWithdrawUnfreezeAmount
Query the withdrawable balance at the specified timestamp In Stake2.0 developers.tron.network.
TronRequestGetChainParameters
All parameters that the blockchain committee can set developers.tron.network.
TronRequestGetContract
Queries a contract's information from the blockchain, including the bytecode of the contract, ABI, configuration parameters, etc. developers.tron.network.
TronRequestGetContractInfo
Queries a contract's information from the blockchain. The difference from the wallet/getcontract interface is that this interface returns not only the bytecode but also the runtime bytecode of the contract. Compared with bytecode, runtime bytecode does not contain constructor and constructor parameter information. developers.tron.network.
TronRequestGetDelegatedResource
Returns all resources delegations during stake1.0 phase from an account to another account. The fromAddress can be retrieved from the GetDelegatedResourceAccountIndex API. developers.tron.network.
TronRequestGetDelegatedResourceAccountIndex
Query the resource delegation by an account during stake1.0 phase. i.e. list all addresses that have delegated resources to an account. developers.tron.network.
TronRequestGetDelegatedResourceAccountIndexV2
In Stake2.0, query the resource delegation index by an account. Two lists will return, one is the list of addresses the account has delegated its resources(toAddress), and the other is the list of addresses that have delegated resources to the account(fromAddress). developers.tron.network.
TronRequestGetDelegatedResourceV2
In Stake2.0, query the detail of resource share delegated from fromAddress to toAddress developers.tron.network.
TronRequestGetDiversifier
GetDiversifier developers.tron.network.
TronRequestGetEnergyPrices
Query historical energy unit price developers.tron.network.
TronRequestGetExchangeById
Query exchange pair based on id developers.tron.network.
TronRequestGetExpandedSpendingKey
GetExpandedSpendingKey developers.tron.network.
TronRequestGetIncomingViewingKey
GetIncomingViewingKey developers.tron.network.
TronRequestGetNewShieldedAddress
GetNewShieldedAddress developers.tron.network.
TronRequestGetNextMaintenanceTime
GetNextMaintenanceTime Returns the timestamp of the next voting time in milliseconds. developers.tron.network.
TronRequestGetNkFromNsk
GetNkFromNsk developers.tron.network.
TronRequestGetNodeInfo
GetNodeInfo developers.tron.network.
TronRequestGetNowBlock
Query the latest block information developers.tron.network.
TronRequestGetPaginatedAssetIssueList
Query the list of all the tokens by pagination.Returns a list of Tokens that succeed the Token located at offset. developers.tron.network.
TronRequestGetPendingSize
Get the size of the pending pool queue developers.tron.network.
TronRequestGetProposalById
Queries proposal based on ID and returns proposal details. developers.tron.network.
TronRequestGetReward
Get the rewards that a witness or a user has not yet withdrawn. developers.tron.network.
TronRequestGetSpendingKey
Note:To ensure security, Trongrid has disabled this interface service, please use the service provided by the local node. developers.tron.network.
TronRequestGetTransactionById
Query the transaction fee, block height by transaction id developers.tron.network.
TronRequestGetTransactionFromPending
Get transaction details from the pending pool developers.tron.network.
TronRequestGetTransactionInfoByBlockNum
developers.tron.network.
TronRequestGetTransactionInfoById
Query the transaction fee, block height by transaction id developers.tron.network.
TronRequestGetTransactionListFromPending
Get transaction list information from pending pool developers.tron.network.
TronRequestGetTriggerInputForShieldedTrc20Contract
GetTriggerInputForShieldedTrc20Contract developers.tron.network.
TronRequestGetZenPaymentAddress
GetZenPaymentAddress developers.tron.network.
TronRequestIsShieldedTrc20ContractNoteSpent
IsShieldedTrc20ContractNoteSpent developers.tron.network.
TronRequestListExchanges
List all exchange pairs. developers.tron.network.
TronRequestListNodes
Query the list of nodes connected to the API node developers.tron.network.
TronRequestListProposals
List all proposals. developers.tron.network.
TronRequestListWitnesses
List all Super Representatives. developers.tron.network.
TronRequestParticipateAssetIssue
Participate in an asset issue.. developers.tron.network.
TronRequestProposalApprove
Approves proposed transaction. developers.tron.network.
TronRequestProposalCreate
Creates a proposal transaction. developers.tron.network.
TronRequestProposalDelete
Deletes Proposal Transaction. developers.tron.network.
TronRequestScanShieldedTrc20NotesByIvk
Scan outgoing notes. developers.tron.network.
TronRequestScanShieldedTrc20NotesByOvk
Scan outgoing notes(spent). developers.tron.network.
TronRequestTransferAsset
Transfer TRC10 token. developers.tron.network.
TronRequestTriggerConstantContract
Invoke the readonly function (modified by the view or pure modifier) of a contract for contract data query; or Invoke the non-readonly function of a contract for predicting whether the transaction can be successfully executed and estimating the energy consumption; or estimate the energy consumption of contract deployment developers.tron.network.
TronRequestTriggerSmartContract
Returns TransactionExtention, which contains the unsigned Transaction developers.tron.network.
TronRequestUndelegateResource
Cancel the delegation of bandwidth or energy resources to other accounts in Stake2.0 developers.tron.network.
TronRequestUnfreezeAsset
Unstake a token that has passed the minimum freeze duration. developers.tron.network.
TronRequestUnfreezeBalance
Unstake the TRX staked during Stake1.0, release the obtained bandwidth or energy and TP. This operation will cause automatically cancel all votes. developers.tron.network.
TronRequestUnfreezeBalanceV2
Unstake some TRX staked in Stake2.0, release the corresponding amount of bandwidth or energy, and voting rights (TP) developers.tron.network.
TronRequestUpdateAccount
Modify account name developers.tron.network.
TronRequestUpdateAsset
Update basic TRC10 token information. developers.tron.network.
TronRequestUpdateBrokerage
Update the witness's brokerage setting. developers.tron.network.
TronRequestUpdateEnergyLimit
Update the origin_energy_limit parameter of a smart contract developers.tron.network.
TronRequestUpdateSetting
Update the consume_user_resource_percent parameter of a smart contract developers.tron.network.
TronRequestUpdateWitness
Edit the URL of the witness's official website. developers.tron.network.
TronRequestValidateAddress
Validates address, returns either true or false. developers.tron.network.
TronRequestVoteWitnessAccount
Vote for witnesses developers.tron.network.
TronRequestWithdrawBalance
Super Representative or user withdraw rewards, usable every 24 hours. Super representatives can withdraw the balance from the account allowance into the account balance, Users can claim the voting reward from the SRs and deposit into his account balance. developers.tron.network.
TronRequestWithdrawExpireUnfreeze
Withdraw unfrozen balance in Stake2.0, the user can call this API to get back their funds after executing /wallet/unfreezebalancev2 transaction and waiting N days, N is a network parameter developers.tron.network.