Get TRON account resources and resource delegations
Retrieves frozenV2 balances, resource delegation fields, network conversion ratios, and spendable bandwidth/energy for TRON addresses from a single getaccountresource call per address. Ratios are returned raw; callers convert frozenV2 amounts to energy/bandwidth units.
per address — consequence: a second call can drift a block so usage would not match energyRatio/bandwidthRatio on each account — consequence: the resources page MUST NOT also call getAccountResources
Path Params
-
coinstring requiredCoin or token identifier (e.g. trx, ttrx:usdt) -
walletIdstring requiredWallet ID to retrieve account resource data for
Body Params
object
Addresses to query for TRON frozenV2, resource delegation, and spendable usage.
Each address is looked up via TRON getaccount and getaccountresource in parallel so frozenV2, conversion ratios, and usage come from the same block. Addresses that do not belong to the wallet are returned in failedAddresses. The resources page SHOULD call this endpoint instead of also calling getAccountResources.
-
addressesarray of strings required -
destinationAddressstringOptional destination address for resource deficit calculation (token transfers)
Responses
200
OK
Response Body
object
-
accountsarray of objects requiredaccounts object
-
frozenV2array of objects requiredfrozenV2 object
-
typestring enum requiredResource type. Omitted BANDWIDTH from TRON protobuf is normalised to this literal.BANDWIDTHENERGYTRON_POWER -
amountstring requiredFrozen TRX amount in SUN (already SUN from IMS; not a TRX→SUN conversion). Decimal integer string, same as bandwidthSunRequired / maxResourcesDelegatable. Missing IMS amounts are returned as "0".
-
-
delegatedFrozenV2BalanceForEnergystring requiredSUN delegated to others for energy. Protobuf-omitted zeros are returned as "0". -
acquiredDelegatedFrozenV2BalanceForEnergystring requiredSUN of energy delegated from others. Protobuf-omitted zeros are returned as "0". -
delegatedFrozenV2BalanceForBandwidthstring requiredSUN delegated to others for bandwidth. Protobuf-omitted zeros are returned as "0". -
acquiredDelegatedFrozenV2BalanceForBandwidthstring requiredSUN of bandwidth delegated from others. Protobuf-omitted zeros are returned as "0". -
energyRationumber requiredTotalEnergyLimit / TotalEnergyWeight from the paired getaccountresource call. 0 when unavailable. -
bandwidthRationumber requiredTotalNetLimit / TotalNetWeight from the paired getaccountresource call. 0 when unavailable. -
addressstring requiredTRON address these resource and usage fields belong to -
freeBandwidthAvailablenumber requiredSpendable free bandwidth remaining -
freeBandwidthUsednumber required -
stakedBandwidthAvailablenumber required -
stakedBandwidthUsednumber required -
energyAvailablenumber required -
energyUsednumber required -
resourceDeficitForAssetTransferobjectShared TRON account-resource response codecs used by getAccount and getAccountResources. Request bodies stay in each route file so OpenAPI keeps per-operation @title / description.resourceDeficitForAssetTransfer object
-
bandwidthDeficitnumber required -
bandwidthSunRequiredstring required -
energyDeficitnumber -
energySunRequiredstring
-
-
maxResourcesDelegatableobjectmaxResourcesDelegatable object
-
bandwidthSunstring required -
energySunstring required
-
-
TotalNetLimitnumberLive total network bandwidth limit (same value for all addresses) -
TotalNetWeightnumberLive total staked TRX for bandwidth (same value for all addresses) -
TotalEnergyLimitnumberLive total network energy limit (same value for all addresses) -
TotalEnergyWeightnumberLive total staked TRX for energy (same value for all addresses)
-
-
failedAddressesarray of objects requiredfailedAddresses object
-
addressstring required -
errorstring required
-
400
Bad Request
Response Body
object
-
namestringError code -
contextmap of objects requiredProperties that apply to a specific error namecontext object
-
<key>object
-
-
errorstring requiredHuman-readable error message -
requestIdstring requiredClient request id
404
Not Found
Response Body
object
-
namestringError code -
contextmap of objects requiredProperties that apply to a specific error namecontext object
-
<key>object
-
-
errorstring requiredHuman-readable error message -
requestIdstring requiredClient request id
500
Internal Server Error
Response Body
object
-
namestringError code -
contextmap of objects requiredProperties that apply to a specific error namecontext object
-
<key>object
-
-
errorstring requiredHuman-readable error message -
requestIdstring requiredClient request id