Skip to main content

TRON

TRON blockchain HTTP API via TronGrid: full-node and solidity-node endpoints for accounts, blocks, transactions, TRC-10 assets, smart contracts, staking, and governance, plus TronGrid v1 extensions and Ethereum-compatible JSON-RPC.

TRON Logo

Authentication​

This connector uses Token-based authentication.

info

Set up your connection in the Abstra Console before using it in your workflows.

How to use​

Using the Smart Chat​

Execute the action "CHOOSE_ONE_ACTION_BELOW" from my connector "YOUR_CONNECTOR_NAME" using the params "PARAMS_HERE".

Using the Web Editor​

from abstra.connectors import run_connection_action

result = run_connection_action(
connection_name="your_connection_name",
action_name="your_action_name",
params={
"param1": "value1",
"param2": "value2"
})

Available Actions​

This connector provides 102 actions:

ActionPurposeParameters
post_wallet_getnodeinfoReturns the full-node runtime, config and peer counts.data: {

} (object) required
post_wallet_listnodesList nodes the current full-node is connected to.data: {

} (object) required
post_wallet_getchainparametersReturns on-chain governance parameters.data: {

} (object) required
post_wallet_getnextmaintenancetimeReturns the timestamp of the next SR schedule maintenance window.data: {

} (object) required
post_wallet_getenergypricesReturns the historical SUN-per-energy prices.data: {

} (object) required
post_wallet_getbandwidthpricesReturns the historical SUN-per-byte prices.data: {

} (object) required
post_wallet_getburntrxTotal TRX burnt since network inception.data: {

} (object) required
post_wallet_getnowblockReturns the latest block on the chain.data: {

} (object) required
post_wallet_getblockReturns the block identified by id_or_num. Includes transactions when detail=true.data: {
. id_or_num (string)
. detail (boolean)
} (object) required
post_wallet_getblockbynumReturns the block at the given height.data: {
. num (integer)
} (object) required
post_wallet_getblockbyidReturns the block with the given hash.data: {
. value (string)
} (object) required
post_wallet_getblockbylimitnextReturns blocks in startNum, endNum.data: {
. startNum (integer)
. endNum (integer)
} (object) required
post_wallet_getblockbylatestnumReturns the latest num blocks.data: {
. num (integer)
} (object) required
post_wallet_getblockbalanceReturns the balance changes that occurred in the given block.data: {
. hash (string)
. number (integer)
} (object) required
post_wallet_gettransactioncountbyblocknumReturns the number of transactions in a block.data: {
. num (integer)
} (object) required
post_wallet_gettransactionbyidReturns the transaction detail for the given txid.data: {
. value (string)
} (object) required
post_wallet_gettransactioninfobyidReturns the transaction receipt / info for the given txid.data: {
. value (string)
} (object) required
post_wallet_gettransactioninfobyblocknumReturns the transaction receipts for all transactions in a block.data: {
. num (integer)
} (object) required
post_wallet_getpendingsizeReturns the number of transactions in the pending pool.data: {

} (object) required
post_wallet_gettransactionfrompendingReturns a pending transaction by its id.data: {
. value (string)
} (object) required
post_wallet_gettransactionlistfrompendingReturns the ids of all pending transactions.data: {

} (object) required
post_wallet_createtransactionBuilds unsigned a TRX transfer. Sign it client-side then broadcast with /wallet/broadcasttransaction.data: {
. owner_address (string)
. to_address (string)
. amount (integer)
. extra_data (string)
. permission_id (integer)
. visible (boolean)
} (object) required
post_wallet_broadcasttransactionBroadcasts a signed transaction object as returned by createtransaction + sign.data (object) required
post_wallet_broadcasthexBroadcasts a hex-encoded signed transaction.data: {
. transaction (string)
} (object) required
post_wallet_getsignweightReturns the cumulative signature weight on a multi-sig transaction.data (object) required
post_wallet_getapprovedlistReturns the list of addresses that have signed a given transaction.data (object) required
post_wallet_getaccountReturns the account state balance, assets, permissions, etc.data: {
. address (string)
. visible (boolean)
} (object) required
post_wallet_getaccountbalanceReturns the account balance at a specific block.data: {
. account_identifier (object)
. block_identifier (object)
. visible (boolean)
} (object) required
post_wallet_getaccountnetReturns the bandwidth consumption / limit for the account.data: {
. address (string)
. visible (boolean)
} (object) required
post_wallet_getaccountresourceReturns the bandwidth, energy and TronPower for the account.data: {
. address (string)
. visible (boolean)
} (object) required
post_wallet_createaccountBuilds an unsigned CreateAccount transaction.data: {
. owner_address (string)
. account_address (string)
. permission_id (integer)
. visible (boolean)
} (object) required
post_wallet_updateaccountBuilds an unsigned UpdateAccount transaction sets the account name.data: {
. account_name (string)
. owner_address (string)
. permission_id (integer)
. visible (boolean)
} (object) required
post_wallet_accountpermissionupdateBuilds an unsigned transaction to update owner/witness/active permissions.data (object) required
post_wallet_validateaddressReturns whether the given address is a valid TRON address.data: {
. address (string)
. visible (boolean)
} (object) required
post_wallet_createassetissueBuilds an unsigned asset issue transaction.data (object) required
post_wallet_updateassetBuilds an unsigned UpdateAsset transaction url, description, limits.data: {
. owner_address (string)
. description (string)
. url (string)
. new_limit (integer)
. new_public_limit (integer)
. permission_id (integer)
. visible (boolean)
} (object) required
post_wallet_transferassetBuilds an unsigned TransferAsset transaction.data: {
. owner_address (string)
. to_address (string)
. asset_name (string)
. amount (integer)
. permission_id (integer)
. visible (boolean)
} (object) required
post_wallet_participateassetissueBuilds an unsigned ParticipateAssetIssue transaction.data: {
. owner_address (string)
. to_address (string)
. asset_name (string)
. amount (integer)
. permission_id (integer)
. visible (boolean)
} (object) required
post_wallet_unfreezeassetBuilds an unsigned UnfreezeAsset transaction.data: {
. owner_address (string)
. permission_id (integer)
. visible (boolean)
} (object) required
post_wallet_getassetissuebyidReturns a TRC-10 token by its id.data: {
. value (string)
} (object) required
post_wallet_getassetissuebynameReturns a TRC-10 token by its name hex.data: {
. value (string)
} (object) required
post_wallet_getassetissuelistbynameReturns TRC-10 tokens matching a name hex.data: {
. value (string)
} (object) required
post_wallet_getassetissuebyaccountReturns the TRC-10 tokens issued by the given account.data: {
. address (string)
. visible (boolean)
} (object) required
post_wallet_getassetissuelistReturns all TRC-10 tokens on the chain.data: {

} (object) required
post_wallet_getpaginatedassetissuelistReturns a page of TRC-10 tokens.data: {
. offset (integer)
. limit (integer)
} (object) required
post_wallet_deploycontractBuilds an unsigned contract deployment transaction.data (object) required
post_wallet_triggersmartcontractBuilds an unsigned transaction that invokes a smart contract method. Sign + broadcast to apply.data: {
. owner_address (string)
. contract_address (string)
. function_selector (string)
. parameter (string)
. data (string)
. fee_limit (integer)
. call_value (integer)
. call_token_value (integer)
. token_id (integer)
. permission_id (integer)
. visible (boolean)
} (object) required
post_wallet_triggerconstantcontractExecutes a smart contract call without changing state. Use for view/pure functions.data: {
. owner_address (string)
. contract_address (string)
. function_selector (string)
. parameter (string)
. data (string)
. visible (boolean)
} (object) required
post_wallet_estimateenergyEstimates the energy cost of a smart contract call.data: {
. owner_address (string)
. contract_address (string)
. function_selector (string)
. parameter (string)
. data (string)
. visible (boolean)
} (object) required
post_wallet_getcontractReturns a smart contract's ABI and bytecode.data: {
. value (string)
. visible (boolean)
} (object) required
post_wallet_getcontractinfoReturns contract metadata including runtime code hash.data: {
. value (string)
. visible (boolean)
} (object) required
post_wallet_clearabiBuilds an unsigned transaction to clear a contract's ABI.data: {
. owner_address (string)
. contract_address (string)
. permission_id (integer)
. visible (boolean)
} (object) required
post_wallet_updatesettingChanges consume_user_resource_percent on a contract.data: {
. owner_address (string)
. contract_address (string)
. consume_user_resource_percent (integer)
. permission_id (integer)
. visible (boolean)
} (object) required
post_wallet_updateenergylimitChanges origin_energy_limit on a contract.data: {
. owner_address (string)
. contract_address (string)
. origin_energy_limit (integer)
. permission_id (integer)
. visible (boolean)
} (object) required
post_wallet_listwitnessesReturns all witnesses super representatives / candidates.data: {

} (object) required
post_wallet_createwitnessBuilds an unsigned CreateWitness transaction apply as a super representative candidate.data: {
. owner_address (string)
. url (string)
. permission_id (integer)
. visible (boolean)
} (object) required
post_wallet_updatewitnessBuilds an unsigned UpdateWitness transaction.data: {
. owner_address (string)
. update_url (string)
. permission_id (integer)
. visible (boolean)
} (object) required
post_wallet_votewitnessaccountBuilds an unsigned VoteWitness transaction.data: {
. owner_address (string)
. votes (array)
. permission_id (integer)
. visible (boolean)
} (object) required
post_wallet_get_brokerageReturns the SR brokerage ratio voter reward share.data: {
. address (string)
. visible (boolean)
} (object) required
post_wallet_update_brokerageBuilds an unsigned transaction to set the SR brokerage ratio.data: {
. owner_address (string)
. brokerage (integer)
. permission_id (integer)
. visible (boolean)
} (object) required
post_wallet_get_rewardReturns the pending voter reward for an address.data: {
. address (string)
. visible (boolean)
} (object) required
post_wallet_withdrawbalanceBuilds an unsigned WithdrawBalance transaction claim rewards.data: {
. owner_address (string)
. visible (boolean)
} (object) required
post_wallet_proposalcreateBuilds an unsigned CreateProposal transaction.data: {
. owner_address (string)
. parameters (array)
. permission_id (integer)
. visible (boolean)
} (object) required
post_wallet_proposalapproveBuilds an unsigned ProposalApprove transaction.data: {
. owner_address (string)
. proposal_id (integer)
. is_add_approval (boolean)
. permission_id (integer)
. visible (boolean)
} (object) required
post_wallet_proposaldeleteBuilds an unsigned ProposalDelete transaction.data: {
. owner_address (string)
. proposal_id (integer)
. permission_id (integer)
. visible (boolean)
} (object) required
post_wallet_listproposalsReturns all governance proposals.data: {

} (object) required
post_wallet_getproposalbyidReturns a proposal by id.data: {
. id (integer)
} (object) required
post_wallet_getpaginatedproposallistReturns a page of proposals.data: {
. offset (integer)
. limit (integer)
} (object) required
post_wallet_freezebalanceLegacy stake. Prefer freezebalancev2 unless migrating old positions.data: {
. owner_address (string)
. frozen_balance (integer)
. frozen_duration (integer)
. resource (string)
. receiver_address (string)
. permission_id (integer)
. visible (boolean)
} (object) required
post_wallet_unfreezebalanceLegacy unstake.data: {
. owner_address (string)
. resource (string)
. receiver_address (string)
. permission_id (integer)
. visible (boolean)
} (object) required
post_wallet_getdelegatedresourceLegacy delegation detail between a pair of addresses.data: {
. fromAddress (string)
. toAddress (string)
. visible (boolean)
} (object) required
post_wallet_getdelegatedresourceaccountindexLegacy delegation index for an address.data: {
. value (string)
. visible (boolean)
} (object) required
post_wallet_freezebalancev2Stakes TRX to acquire bandwidth or energy.data: {
. owner_address (string)
. frozen_balance (integer)
. resource (string)
. permission_id (integer)
. visible (boolean)
} (object) required
post_wallet_unfreezebalancev2Unstakes a portion of staked TRX.data: {
. owner_address (string)
. unfreeze_balance (integer)
. resource (string)
. permission_id (integer)
. visible (boolean)
} (object) required
post_wallet_withdrawexpireunfreezeWithdraws TRX whose unfreeze period has elapsed.data: {
. owner_address (string)
. visible (boolean)
} (object) required
post_wallet_cancelallunfreezev2Cancels every in-flight unfreeze on the account and re-stakes.data: {
. owner_address (string)
. visible (boolean)
} (object) required
post_wallet_delegateresourceDelegates energy or bandwidth from staked TRX to another address.data: {
. owner_address (string)
. receiver_address (string)
. balance (integer)
. resource (string)
. lock (boolean)
. lock_period (integer)
. permission_id (integer)
. visible (boolean)
} (object) required
post_wallet_undelegateresourceReclaims a previously delegated resource.data: {
. owner_address (string)
. receiver_address (string)
. balance (integer)
. resource (string)
. permission_id (integer)
. visible (boolean)
} (object) required
post_wallet_getdelegatedresourcev2Returns the delegation detail between two addresses.data: {
. fromAddress (string)
. toAddress (string)
. visible (boolean)
} (object) required
post_wallet_getdelegatedresourceaccountindexv2Returns the delegation index for an address.data: {
. value (string)
. visible (boolean)
} (object) required
post_wallet_getcandelegatedmaxsizeReturns the maximum amount of a resource an address can still delegate.data: {
. owner_address (string)
. type (integer)
. visible (boolean)
} (object) required
post_wallet_getavailableunfreezecountReturns the number of unfreeze slots still available on the account.data: {
. owner_address (string)
. visible (boolean)
} (object) required
post_wallet_getcanwithdrawunfreezeamountReturns the TRX currently withdrawable from completed unfreezes.data: {
. owner_address (string)
. timestamp (integer)
. visible (boolean)
} (object) required
post_walletsolidity_getaccountConfirmed-state variant of /wallet/getaccount.data: {
. address (string)
. visible (boolean)
} (object) required
post_walletsolidity_getnowblockLatest block from the solidity confirmed node.data: {

} (object) required
post_walletsolidity_getblockbynumConfirmed-state variant.data: {
. num (integer)
} (object) required
post_walletsolidity_getblockbyidConfirmed-state variant.data: {
. value (string)
} (object) required
post_walletsolidity_getblockbylatestnumConfirmed-state variant.data: {
. num (integer)
} (object) required
post_walletsolidity_getblockbylimitnextConfirmed-state variant.data: {
. startNum (integer)
. endNum (integer)
} (object) required
post_walletsolidity_gettransactionbyidConfirmed-state variant of /wallet/gettransactionbyid.data: {
. value (string)
} (object) required
post_walletsolidity_gettransactioninfobyidConfirmed-state variant of /wallet/gettransactioninfobyid.data: {
. value (string)
} (object) required
post_walletsolidity_gettransactioninfobyblocknumConfirmed-state variant of /wallet/gettransactioninfobyblocknum.data: {
. num (integer)
} (object) required
post_walletsolidity_listwitnessesConfirmed-state witness list.data: {

} (object) required
post_jsonrpcTRON exposes an Ethereum-compatible JSON-RPC endpoint eth_blockNumber, eth_getBalance, eth_call, eth_sendRawTransaction, etc.data: {
. jsonrpc (string)
. id (integer)
. method (string)
. params (array)
} (object) required
get_v1_accounts_by_addressTronGrid v1 enriched account query.address (string) required
get_v1_accounts_by_address_transactionsTronGrid v1 transaction history for an address.address (string) required
only_confirmed (boolean)
only_unconfirmed (boolean)
only_to (boolean)
only_from (boolean)
limit (integer)
fingerprint (string)
order_by (string)
min_timestamp (integer)
max_timestamp (integer)
search_internal (boolean)
get_v1_accounts_by_address_transactions_trc20TronGrid v1 TRC-20 transfer history for an address.address (string) required
contract_address (string)
only_confirmed (boolean)
only_unconfirmed (boolean)
only_to (boolean)
only_from (boolean)
limit (integer)
fingerprint (string)
order_by (string)
min_timestamp (integer)
max_timestamp (integer)
get_v1_blocks_latestTronGrid v1 latest block.No parameters
get_v1_blocksTronGrid v1 block list.limit (integer)
order_by (string)
min_timestamp (integer)
max_timestamp (integer)
get_v1_contracts_by_address_eventsTronGrid v1 events emitted by a contract.address (string) required
event_name (string)
block_number (integer)
only_confirmed (boolean)
only_unconfirmed (boolean)
limit (integer)
fingerprint (string)
order_by (string)
min_block_timestamp (integer)
max_block_timestamp (integer)
get_v1_transactions_by_hash_eventsTronGrid v1 events emitted by a transaction.hash (string) required
customCall any endpoint of the connected service while reusing the connection auth. Pass the full URL as _url. Other reserved keys: _method, _query, _body, _headers. Remaining params flow naturally — empty → GET, non-empty → POST JSON body._url (string) required
_method (string)
_query (object)
_body
_headers (object)