getaccountnet - Tron
getaccountnet. Returns the bandwidth usage and limits for a given account.
getaccountnet - tron [Value: 20CU]
Returns the bandwidth usage and limits for a given account.
Use cases
- Available as a GET request
- Monitor daily free-bandwidth consumption for a hot wallet
Constraints
- Superseded in newer responses by fields also present in getaccountresource
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/getaccountnet \
--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": 26856678116
}
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 bandwidth usage and limits for a given account.Response params
object
freeNetUsedinteger
Free bandwidth used today
freeNetLimitinteger
Daily free bandwidth quota (5,000 by default)
NetUsedinteger
Staked bandwidth used today
NetLimitinteger
Total staked bandwidth available
TotalNetLimitinteger
Total bandwidth available across the whole network
TotalNetWeightinteger
Total TRX staked for bandwidth across the network
assetNetUsedmap[string]int64
Account's free Bandwidth used for TRC-10 tokens, keyed by Token ID.
assetNetLimitmap[string]int64
Account's free Bandwidth limits for TRC-10 tokens, keyed by Token ID.