Check a TRON address's available energy and bandwidth
const url = 'https://trongas.ai/api/v1/address-checker?address=example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://trongas.ai/api/v1/address-checker?address=example'Live energy/bandwidth for any TRON address, read from the network (not our balance, not order-related). Public — no API key required. Returns 400 if address isn’t a syntactically valid TRON address, 503 with code address_checker.unavailable if the upstream node is unreachable.
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters”TRON address (T…, base58) to look up.
Responses
Section titled “ Responses ”OK
object
object
Examplegenerated
{ "address": "example", "activated": true, "energyLimit": 1, "energyUsed": 1, "energyAvailable": 1, "bandwidthLimit": 1, "bandwidthUsed": 1, "bandwidthAvailable": 1}object
Examplegenerated
{ "address": "example", "activated": true, "energyLimit": 1, "energyUsed": 1, "energyAvailable": 1, "bandwidthLimit": 1, "bandwidthUsed": 1, "bandwidthAvailable": 1}Bad Request
object
Machine-readable error code, e.g. wallet.insufficient_balance. Branch on this, not on title. Always present: validation_failed for request validation (400, with per-field errors), unauthorized for 401, domain codes otherwise.
object
Machine-readable error code, e.g. wallet.insufficient_balance. Branch on this, not on title. Always present: validation_failed for request validation (400, with per-field errors), unauthorized for 401, domain codes otherwise.
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": "example"}object
Machine-readable error code, e.g. wallet.insufficient_balance. Branch on this, not on title. Always present: validation_failed for request validation (400, with per-field errors), unauthorized for 401, domain codes otherwise.
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": "example"}