Skip to content

Get Available Energy Limits

This endpoint provides information about energy limits, transaction limits, and current currency rates.

Endpoint

POST /system/info

Headers

Ensure the following headers are included in your request:

  • Content-Type: application/json
  • Accept: application/json
  • Authorization: Bearer {TOKEN}
  • X-Txc-Signature: {SIGN}

Request Body

For this request, the body should be an empty JSON object:

json
{}

Example Request

PHP
php
// Replace these with your actual data
$url = "https://dev-site.evelar.energy/api/v1/system/info";
$token = "YOUR_TOKEN";
$secret = "MYSECRET";
$body = "{}"; // Empty body for this request

// Generate the signature
$sign = hash('sha256', $body . $secret);

// Headers
$headers = [
    "Content-Type: application/json",
    "Accept: application/json",
    "Authorization: Bearer $token",
    "X-Txc-Signature: $sign"
];

// Initialize cURL
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

// Execute request and get the response
$response = curl_exec($ch);
curl_close($ch);

// Output response
echo $response;
Python
python
import requests
import hashlib

url = "https://dev-site.evelar.energy/api/v1/system/info"
token = "YOUR_TOKEN"
secret = "MYSECRET"
body = "{}"  # Empty body for this request

# Generate the signature
sign = hashlib.sha256((body + secret).encode('utf-8')).hexdigest()

# Headers
headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": f"Bearer {token}",
    "X-Txc-Signature": sign
}

# Make the request
response = requests.post(url, headers=headers, data=body)
print(response.json())
Node.js
javascript
const axios = require('axios');
const crypto = require('crypto');

const url = "https://dev-site.evelar.energy/api/v1/system/info";
const token = "YOUR_TOKEN";
const secret = "MYSECRET";
const body = "{}"; // Empty body for this request

// Generate the signature
const sign = crypto.createHash('sha256').update(body + secret).digest('hex');

// Headers
const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": `Bearer ${token}`,
    "X-Txc-Signature": sign
};

// Make the request
axios.post(url, body, { headers })
    .then(response => console.log(response.data))
    .catch(error => console.error(error));
Bash
bash
url="https://dev-site.evelar.energy/api/v1/system/info"
token="YOUR_TOKEN"
secret="MYSECRET"
body="{}"

# Generate the signature
sign=$(echo -n "$body$secret" | openssl dgst -sha256 -hex | awk '{print $2}')

# Make the request
curl -X POST $url \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer $token" \
  -H "X-Txc-Signature: $sign" \
  -d "$body"

Example Response

json
{
   "code": 0,
   "result": {
      "min_energy_limit": 3000,
      "max_energy_limit": 21882,
      "min_trx_deposit_limit": 50,
      "max_trx_deposit_limit": 10000,
      "average_transaction_energy_consumption": 135000,
      "trx_price_per_energy": 0.01,
      "currency_rates": {
          "TRX": {
              "TRX": 1,
              "USDT": 0.1979
          },
          "USDT": {
              "TRX": 5.054,
              "USDT": 1
          }
      }
   }
}

Response Fields

FieldTypeDescription
codeintResponse status code.
min_energy_limitintMinimum energy that can be ordered.
max_energy_limitintMaximum energy that can be ordered.
min_trx_deposit_limitintMinimum TRX deposit amount.
max_trx_deposit_limitintMaximum TRX deposit amount.
average_transaction_energy_consumptionintAverage energy consumption per transaction.
trx_price_per_energyfloatPrice per unit of energy in TRX.
currency_ratesobjectConversion rates between TRX and USDT.
currency_rates.TRX.TRXfloatConversion rate from TRX to TRX (always 1).
currency_rates.TRX.USDTfloatConversion rate from TRX to USDT.
currency_rates.USDT.TRXfloatConversion rate from USDT to TRX.
currency_rates.USDT.USDTfloatConversion rate from USDT to USDT (always 1).