Balance
Request to retrieve the user's current balance. The authentication token token must be send in header X-API-KEY with the request. This token is used to identify the user.
Authorizations
X-API-KEYstringRequired
API key for authentication
Responses
200
Default Response
application/json
401
Unauthorized error
application/json
get
/api/v1/balanceGET /api/v1/balance HTTP/1.1
Host: api.tronex.energy
X-API-KEY: YOUR_API_KEY
Accept: */*
{
"balance": 1
}The method is used to get the address where the user's balance will be refilled. The user must provide a valid authentication token in header.
Authorizations
X-API-KEYstringRequired
API key for authentication
Responses
200
Wallet address to top up balance
application/json
401
Unauthorized error
application/json
get
/api/v1/refillGET /api/v1/refill HTTP/1.1
Host: api.tronex.energy
X-API-KEY: YOUR_API_KEY
Accept: */*
{
"balance": 1000,
"address": "TVVX6svz6vXGVACeH9jNMk5M3dH5SvcT71"
}Last updated