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.
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:
| Action | Purpose | Parameters |
|---|---|---|
| post_wallet_getnodeinfo | Returns the full-node runtime, config and peer counts. | data: { } (object) required |
| post_wallet_listnodes | List nodes the current full-node is connected to. | data: { } (object) required |
| post_wallet_getchainparameters | Returns on-chain governance parameters. | data: { } (object) required |
| post_wallet_getnextmaintenancetime | Returns the timestamp of the next SR schedule maintenance window. | data: { } (object) required |
| post_wallet_getenergyprices | Returns the historical SUN-per-energy prices. | data: { } (object) required |
| post_wallet_getbandwidthprices | Returns the historical SUN-per-byte prices. | data: { } (object) required |
| post_wallet_getburntrx | Total TRX burnt since network inception. | data: { } (object) required |
| post_wallet_getnowblock | Returns the latest block on the chain. | data: { } (object) required |
| post_wallet_getblock | Returns the block identified by id_or_num. Includes transactions when detail=true. | data: { . id_or_num (string) . detail (boolean) } (object) required |
| post_wallet_getblockbynum | Returns the block at the given height. | data: { . num (integer) } (object) required |
| post_wallet_getblockbyid | Returns the block with the given hash. | data: { . value (string) } (object) required |
| post_wallet_getblockbylimitnext | Returns blocks in startNum, endNum. | data: { . startNum (integer) . endNum (integer) } (object) required |
| post_wallet_getblockbylatestnum | Returns the latest num blocks. | data: { . num (integer) } (object) required |
| post_wallet_getblockbalance | Returns the balance changes that occurred in the given block. | data: { . hash (string) . number (integer) } (object) required |
| post_wallet_gettransactioncountbyblocknum | Returns the number of transactions in a block. | data: { . num (integer) } (object) required |
| post_wallet_gettransactionbyid | Returns the transaction detail for the given txid. | data: { . value (string) } (object) required |
| post_wallet_gettransactioninfobyid | Returns the transaction receipt / info for the given txid. | data: { . value (string) } (object) required |
| post_wallet_gettransactioninfobyblocknum | Returns the transaction receipts for all transactions in a block. | data: { . num (integer) } (object) required |
| post_wallet_getpendingsize | Returns the number of transactions in the pending pool. | data: { } (object) required |
| post_wallet_gettransactionfrompending | Returns a pending transaction by its id. | data: { . value (string) } (object) required |
| post_wallet_gettransactionlistfrompending | Returns the ids of all pending transactions. | data: { } (object) required |
| post_wallet_createtransaction | Builds 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_broadcasttransaction | Broadcasts a signed transaction object as returned by createtransaction + sign. | data (object) required |
| post_wallet_broadcasthex | Broadcasts a hex-encoded signed transaction. | data: { . transaction (string) } (object) required |
| post_wallet_getsignweight | Returns the cumulative signature weight on a multi-sig transaction. | data (object) required |
| post_wallet_getapprovedlist | Returns the list of addresses that have signed a given transaction. | data (object) required |
| post_wallet_getaccount | Returns the account state balance, assets, permissions, etc. | data: { . address (string) . visible (boolean) } (object) required |
| post_wallet_getaccountbalance | Returns the account balance at a specific block. | data: { . account_identifier (object) . block_identifier (object) . visible (boolean) } (object) required |
| post_wallet_getaccountnet | Returns the bandwidth consumption / limit for the account. | data: { . address (string) . visible (boolean) } (object) required |
| post_wallet_getaccountresource | Returns the bandwidth, energy and TronPower for the account. | data: { . address (string) . visible (boolean) } (object) required |
| post_wallet_createaccount | Builds an unsigned CreateAccount transaction. | data: { . owner_address (string) . account_address (string) . permission_id (integer) . visible (boolean) } (object) required |
| post_wallet_updateaccount | Builds an unsigned UpdateAccount transaction sets the account name. | data: { . account_name (string) . owner_address (string) . permission_id (integer) . visible (boolean) } (object) required |
| post_wallet_accountpermissionupdate | Builds an unsigned transaction to update owner/witness/active permissions. | data (object) required |
| post_wallet_validateaddress | Returns whether the given address is a valid TRON address. | data: { . address (string) . visible (boolean) } (object) required |
| post_wallet_createassetissue | Builds an unsigned asset issue transaction. | data (object) required |
| post_wallet_updateasset | Builds 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_transferasset | Builds 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_participateassetissue | Builds 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_unfreezeasset | Builds an unsigned UnfreezeAsset transaction. | data: { . owner_address (string) . permission_id (integer) . visible (boolean) } (object) required |
| post_wallet_getassetissuebyid | Returns a TRC-10 token by its id. | data: { . value (string) } (object) required |
| post_wallet_getassetissuebyname | Returns a TRC-10 token by its name hex. | data: { . value (string) } (object) required |
| post_wallet_getassetissuelistbyname | Returns TRC-10 tokens matching a name hex. | data: { . value (string) } (object) required |
| post_wallet_getassetissuebyaccount | Returns the TRC-10 tokens issued by the given account. | data: { . address (string) . visible (boolean) } (object) required |
| post_wallet_getassetissuelist | Returns all TRC-10 tokens on the chain. | data: { } (object) required |
| post_wallet_getpaginatedassetissuelist | Returns a page of TRC-10 tokens. | data: { . offset (integer) . limit (integer) } (object) required |
| post_wallet_deploycontract | Builds an unsigned contract deployment transaction. | data (object) required |
| post_wallet_triggersmartcontract | Builds 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_triggerconstantcontract | Executes 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_estimateenergy | Estimates 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_getcontract | Returns a smart contract's ABI and bytecode. | data: { . value (string) . visible (boolean) } (object) required |
| post_wallet_getcontractinfo | Returns contract metadata including runtime code hash. | data: { . value (string) . visible (boolean) } (object) required |
| post_wallet_clearabi | Builds 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_updatesetting | Changes 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_updateenergylimit | Changes 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_listwitnesses | Returns all witnesses super representatives / candidates. | data: { } (object) required |
| post_wallet_createwitness | Builds 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_updatewitness | Builds an unsigned UpdateWitness transaction. | data: { . owner_address (string) . update_url (string) . permission_id (integer) . visible (boolean) } (object) required |
| post_wallet_votewitnessaccount | Builds an unsigned VoteWitness transaction. | data: { . owner_address (string) . votes (array) . permission_id (integer) . visible (boolean) } (object) required |
| post_wallet_get_brokerage | Returns the SR brokerage ratio voter reward share. | data: { . address (string) . visible (boolean) } (object) required |
| post_wallet_update_brokerage | Builds 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_reward | Returns the pending voter reward for an address. | data: { . address (string) . visible (boolean) } (object) required |
| post_wallet_withdrawbalance | Builds an unsigned WithdrawBalance transaction claim rewards. | data: { . owner_address (string) . visible (boolean) } (object) required |
| post_wallet_proposalcreate | Builds an unsigned CreateProposal transaction. | data: { . owner_address (string) . parameters (array) . permission_id (integer) . visible (boolean) } (object) required |
| post_wallet_proposalapprove | Builds an unsigned ProposalApprove transaction. | data: { . owner_address (string) . proposal_id (integer) . is_add_approval (boolean) . permission_id (integer) . visible (boolean) } (object) required |
| post_wallet_proposaldelete | Builds an unsigned ProposalDelete transaction. | data: { . owner_address (string) . proposal_id (integer) . permission_id (integer) . visible (boolean) } (object) required |
| post_wallet_listproposals | Returns all governance proposals. | data: { } (object) required |
| post_wallet_getproposalbyid | Returns a proposal by id. | data: { . id (integer) } (object) required |
| post_wallet_getpaginatedproposallist | Returns a page of proposals. | data: { . offset (integer) . limit (integer) } (object) required |
| post_wallet_freezebalance | Legacy 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_unfreezebalance | Legacy unstake. | data: { . owner_address (string) . resource (string) . receiver_address (string) . permission_id (integer) . visible (boolean) } (object) required |
| post_wallet_getdelegatedresource | Legacy delegation detail between a pair of addresses. | data: { . fromAddress (string) . toAddress (string) . visible (boolean) } (object) required |
| post_wallet_getdelegatedresourceaccountindex | Legacy delegation index for an address. | data: { . value (string) . visible (boolean) } (object) required |
| post_wallet_freezebalancev2 | Stakes TRX to acquire bandwidth or energy. | data: { . owner_address (string) . frozen_balance (integer) . resource (string) . permission_id (integer) . visible (boolean) } (object) required |
| post_wallet_unfreezebalancev2 | Unstakes a portion of staked TRX. | data: { . owner_address (string) . unfreeze_balance (integer) . resource (string) . permission_id (integer) . visible (boolean) } (object) required |
| post_wallet_withdrawexpireunfreeze | Withdraws TRX whose unfreeze period has elapsed. | data: { . owner_address (string) . visible (boolean) } (object) required |
| post_wallet_cancelallunfreezev2 | Cancels every in-flight unfreeze on the account and re-stakes. | data: { . owner_address (string) . visible (boolean) } (object) required |
| post_wallet_delegateresource | Delegates 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_undelegateresource | Reclaims a previously delegated resource. | data: { . owner_address (string) . receiver_address (string) . balance (integer) . resource (string) . permission_id (integer) . visible (boolean) } (object) required |
| post_wallet_getdelegatedresourcev2 | Returns the delegation detail between two addresses. | data: { . fromAddress (string) . toAddress (string) . visible (boolean) } (object) required |
| post_wallet_getdelegatedresourceaccountindexv2 | Returns the delegation index for an address. | data: { . value (string) . visible (boolean) } (object) required |
| post_wallet_getcandelegatedmaxsize | Returns the maximum amount of a resource an address can still delegate. | data: { . owner_address (string) . type (integer) . visible (boolean) } (object) required |
| post_wallet_getavailableunfreezecount | Returns the number of unfreeze slots still available on the account. | data: { . owner_address (string) . visible (boolean) } (object) required |
| post_wallet_getcanwithdrawunfreezeamount | Returns the TRX currently withdrawable from completed unfreezes. | data: { . owner_address (string) . timestamp (integer) . visible (boolean) } (object) required |
| post_walletsolidity_getaccount | Confirmed-state variant of /wallet/getaccount. | data: { . address (string) . visible (boolean) } (object) required |
| post_walletsolidity_getnowblock | Latest block from the solidity confirmed node. | data: { } (object) required |
| post_walletsolidity_getblockbynum | Confirmed-state variant. | data: { . num (integer) } (object) required |
| post_walletsolidity_getblockbyid | Confirmed-state variant. | data: { . value (string) } (object) required |
| post_walletsolidity_getblockbylatestnum | Confirmed-state variant. | data: { . num (integer) } (object) required |
| post_walletsolidity_getblockbylimitnext | Confirmed-state variant. | data: { . startNum (integer) . endNum (integer) } (object) required |
| post_walletsolidity_gettransactionbyid | Confirmed-state variant of /wallet/gettransactionbyid. | data: { . value (string) } (object) required |
| post_walletsolidity_gettransactioninfobyid | Confirmed-state variant of /wallet/gettransactioninfobyid. | data: { . value (string) } (object) required |
| post_walletsolidity_gettransactioninfobyblocknum | Confirmed-state variant of /wallet/gettransactioninfobyblocknum. | data: { . num (integer) } (object) required |
| post_walletsolidity_listwitnesses | Confirmed-state witness list. | data: { } (object) required |
| post_jsonrpc | TRON 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_address | TronGrid v1 enriched account query. | address (string) required |
| get_v1_accounts_by_address_transactions | TronGrid 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_trc20 | TronGrid 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_latest | TronGrid v1 latest block. | No parameters |
| get_v1_blocks | TronGrid v1 block list. | limit (integer) order_by (string) min_timestamp (integer) max_timestamp (integer) |
| get_v1_contracts_by_address_events | TronGrid 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_events | TronGrid v1 events emitted by a transaction. | hash (string) required |
| custom | Call 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) |