getaccountresource - Tron
getaccountresource. Returns the energy and bandwidth resource usage and limits for a given account.
getaccountresource - tron [Value: 20CU]
Returns the energy and bandwidth resource usage and limits for a given account.
Use cases
- Available as a GET request
- Build a resource dashboard showing bandwidth and energy usage side by side
Constraints
- Values change every time new blocks are produced (staking window resets daily)
Unlock Access to 100+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
curl --request POST \
--url https://lb.drpc.live/tron/{API-KEY}/wallet/getaccountresource \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g", "visible": true}'Response
200
{
"freeNetLimit": 600,
"assetNetUsed": [
{
"key": "1004977",
"value": 0
},
{
"key": "1005026",
"value": 0
},
{
"key": "1005157",
"value": 0
},
{
"key": "1005168",
"value": 0
},
{
"key": "1005141",
"value": 0
},
{
"key": "1005074",
"value": 0
}
],
"assetNetLimit": [
{
"key": "1004977",
"value": 1
},
{
"key": "1005026",
"value": 0
},
{
"key": "1005157",
"value": 0
},
{
"key": "1005168",
"value": 0
},
{
"key": "1005141",
"value": 0
},
{
"key": "1005074",
"value": 0
}
],
"TotalNetLimit": 43200000000,
"TotalNetWeight": 26856723239,
"EnergyLimit": 9,
"TotalEnergyLimit": 180000000000,
"TotalEnergyWeight": 18971780957
}
Request params
idinteger
jsonrpcstring
methodstring
object
addressstring
[Required for GET] The account address to query
visibleboolean
When true, addresses are base58check strings; when false (default), hex strings
Response
200
Returns the energy and bandwidth resource usage and limits for a given account.Response params
object
freeNetLimitinteger
Daily free bandwidth quota
NetLimitinteger
Staked bandwidth available
TotalNetLimitinteger
Total network-wide bandwidth
assetNetLimitmap[string]int64
Per-TRC-10 bandwidth
TotalNetWeightinteger
Network-wide bandwidth quota / total staked TRX
EnergyUsedinteger
Energy used today
tronPowerLimitinteger
Voting power
TotalEnergyLimitinteger
Total network-wide energy
TotalTronPowerWeightinteger
Network-wide total voting power