REST APIWallet & TransactWallet

POST

Retrieves bandwidth and energy resource information for TRON addresses

Path Params

  • coin string required
    Coin or token identifier (e.g. trx, ttrx:usdt)
  • walletId string required
    Wallet ID to retrieve account resources for

Body Params

object

List of TRON addresses to retrieve resource information for

Optional destinationAddress is used only for token energy deficit calculation.

  • addresses array of strings required
  • destinationAddress string
    Optional destination address for resource deficit calculation

Responses

200
OK

Response Body

object

  • resources array of objects required
    resources object
    • address string required
      TRON address these resource and usage fields belong to
    • freeBandwidthAvailable number required
      Spendable free bandwidth remaining
    • freeBandwidthUsed number required
    • stakedBandwidthAvailable number required
    • stakedBandwidthUsed number required
    • energyAvailable number required
    • energyUsed number required
    • resourceDeficitForAssetTransfer object
      Shared 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
      • bandwidthDeficit number required
      • bandwidthSunRequired string required
      • energyDeficit number
      • energySunRequired string
    • maxResourcesDelegatable object
      maxResourcesDelegatable object
      • bandwidthSun string required
      • energySun string required
    • TotalNetLimit number
      Live total network bandwidth limit (same value for all addresses)
    • TotalNetWeight number
      Live total staked TRX for bandwidth (same value for all addresses)
    • TotalEnergyLimit number
      Live total network energy limit (same value for all addresses)
    • TotalEnergyWeight number
      Live total staked TRX for energy (same value for all addresses)
  • failedAddresses array of objects required
    failedAddresses object
    • address string required
    • error string required
400
Bad Request

Response Body

object

  • name string
    Error code
  • context map of objects required
    Properties that apply to a specific error name
    context object
    • <key> object
  • error string required
    Human-readable error message
  • requestId string required
    Client request id
404
Not Found

Response Body

object

Wallet does not exist, or the caller has no view access to it
  • name string
    Error code
  • context map of objects required
    Properties that apply to a specific error name
    context object
    • <key> object
  • error string required
    Human-readable error message
  • requestId string required
    Client request id
500
Internal Server Error

Response Body

object

  • name string
    Error code
  • context map of objects required
    Properties that apply to a specific error name
    context object
    • <key> object
  • error string required
    Human-readable error message
  • requestId string required
    Client request id