Balance

Get balance

get

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
get
/api/v1/balance
GET /api/v1/balance HTTP/1.1
Host: api.tronex.energy
X-API-KEY: YOUR_API_KEY
Accept: */*
{
  "balance": 1
}

Get refill address

get

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
get
/api/v1/refill
GET /api/v1/refill HTTP/1.1
Host: api.tronex.energy
X-API-KEY: YOUR_API_KEY
Accept: */*
{
  "balance": 1000,
  "address": "TVVX6svz6vXGVACeH9jNMk5M3dH5SvcT71"
}

Last updated