v1

latestOpenAPI 3.1.02026-07-2612501.4 MB

getaccountresource

Query the resource information of an account(bandwidth,energy,etc)

post/node/v1/tron/mainnet/{apiKey}/wallet/getaccountresource

Path parameters

apiKeystring required

please <span class="custom-style"><a href="../docs/quick-start-guide#-creating-your-api-key-on-the-zan-platform" target="_blank">create your own API key</a></span>

Request body

addressstring required

address should be converted to a hex string

visibleboolean required

Optional,whether the address is in base58 format

Response

200

freeNetUsedinteger

Free bandwidth used

freeNetLimitinteger

Total free bandwidth

NetUsedinteger

Used amount of bandwidth obtained by staking

NetLimitinteger

Total bandwidth obtained by staking

TotalNetLimitinteger

Total bandwidth can be obtained by staking by the whole network

TotalNetWeightinteger

Total TRX staked for bandwidth by the whole network

totalTronPowerWeightinteger

The total amount of voting rights obtained by the whole network

tronPowerLimitinteger

TRON Power(vote)

tronPowerUsedinteger

TRON Power(vote) used

EnergyUsedinteger

Energy used

EnergyLimitinteger

Total energy obtained by staking

TotalEnergyLimitinteger

Total energy can be obtained by staking by the whole network

TotalEnergyWeightinteger

Total TRX staked for energy by the whole network

assetNetUsedobject

The amount of free bandwidth of each TRC10 asset used by the account

assetNetLimitobject

The amount of free bandwidth for each TRC10 asset in the account