getaccountresource

TRONC2

Returns an address's available and total bandwidth and energy, plus the network-wide totals used to price them — essential for managing TRC-20 transfer costs.

Endpoint
POST https://api.1st-node.com/v1/tron/wallet/getaccountresource

Parameters

NameTypeDescription
addressstringTRON address.
visiblebooleantrue for base58 addresses.

Returns

object — EnergyLimit, EnergyUsed, freeNetLimit and more.

Request

curl https://api.1st-node.com/v1/tron/wallet/getaccountresource \
  -H "Authorization: Bearer $ONE_KEY" \
  -H "content-type: application/json" \
  -d '{ "address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t", "visible": true }'
{ "address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t", "visible": true }

Response

{ "EnergyLimit": 100000, "EnergyUsed": 0, "NetLimit": 5000 }
More state methods on TRON

TRON API

常见问题

How does this help cut fees?

Knowing energy/bandwidth lets you stake or rent energy so TRC-20 transfers don't burn TRX.

充值、拿密钥、上线。

自助开通。支持加密货币或银行卡。按额度计费——重型原语更贵,简单调用很便宜。

获取 API 密钥