Get your balance
GET
/api/v1/wallet/balance
const url = 'https://trongas.ai/api/v1/wallet/balance';const options = {method: 'GET', headers: {'X-Api-Key': '<X-Api-Key>'}};
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/wallet/balance \ --header 'X-Api-Key: <X-Api-Key>'Your USDT-TRC20 and TRX balances. Orders and automations are always paid from the TRX balance. trxAvailable is the part of trx you can spend now on orders and address activations: trx minus what your active automations hold for their next firing (one refill, renewal or smart delivery each). It is null if it can’t be computed right now.
Authorizations
Section titled “Authorizations”Responses
Section titled “ Responses ”OK
object
usdtTrc20
required
string
trx
required
string
trxAvailable
required
null | string
object
usdtTrc20
required
string
trx
required
string
trxAvailable
required
null | string
Examplegenerated
{ "usdtTrc20": "example", "trx": "example", "trxAvailable": "example"}object
usdtTrc20
required
string
trx
required
string
trxAvailable
required
null | string
Examplegenerated
{ "usdtTrc20": "example", "trx": "example", "trxAvailable": "example"}