Public data query

interface address

GET /api/v1/frontend/index-data

Return parameters

  • Normal return example
{
     "platform_avail_energy": 603249,
     "platform_max_energy": 329009,
     "minimum_order_energy": 32000,
     "maximum_order_energy": 100000000,
     "small_amount": 50000,
     "small_addition": 0.6,
     "usdt_energy_need_old": 32000,
     "usdt_energy_need_new": 65000,
     "tiered_pricing": [{"period": 0, "price": 100}, {"period": 1, "price": 200}, {"period": 3, "price": 152}, {"period ": 30, "price": 124}],
     "balance": 813892429257
}
  • This interface theoretically returns no errors, and returns empty data when the APIKEY is incorrect.

  • Field explanation

Parameter nameTypeDescriptionExample
platform_avail_energyintPlatform available energy
platform_max_energyintThe maximum order amount for a single order,
If the order is not allowed to be split, the maximum order energy
minimum_order_energyintMinimum order energy quantity
maximum_order_energyintMaximum order energy quantity
small_amountintLess than this amount is a small order
small_additionfloatSmall handling fee, unit TRX
usdt_energy_need_oldintThere is currently a U address recommended for renting
usdt_energy_need_newintCurrently there is no U address recommended to rent
tiered_pricing[]My price, period currently supports
0 (1 hour), 1 (1 day),
3 (3 days), 30 (30 days),
price The unit is sun
balanceintMy balance in sun

Code Example

import requests

API_KEY = "B433BFF1CDE7450AA38A56BEAC690DD4"
URL = "https://itrx.io/api/v1/frontend/index-data"
headers = {
    "API-KEY": API_KEY
}
response = requests.get(f"{URL}", headers=headers)
print(response.json())
<?php
$API_KEY = "B433BFF1CDE7450AA38A56BEAC690DD4";
$URL = "https://itrx.io/api/v1/frontend/index-data";
$headers = array('API-KEY' => $API_KEY);

$context = stream_context_create(array(
    'http' => array(
        'method' => 'GET',
        'header' => "API-KEY: " . $API_KEY,
    )
));
$response = file_get_contents($URL, false, $context);

var_dump(json_decode($response, true));
?>

import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;

public class Main {
    public static void main(String[] args) {
        OkHttpClient client = new OkHttpClient();
        String url = "https://itrx.io/api/v1/frontend/index-data";
        Request request = new Request.Builder()
                .url(url)
                .addHeader("API-KEY", "B433BFF1CDE7450AA38A56BEAC690DD4")
                .build();
        try {
            Response response = client.newCall(request).execute();
            System.out.println(response.body().string());
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}

package main

import (
	"io/ioutil"
	"net/http"
	"fmt"
)

func main() {
	API_KEY := "B433BFF1CDE7450AA38A56BEAC690DD4"
	URL := "https://itrx.io/api/v1/frontend/index-data"

	client := &http.Client{}
	req, _ := http.NewRequest("GET", URL, nil)
	req.Header.Set("API-KEY", API_KEY)

	resp, err := client.Do(req)
	if err != nil {
		fmt.Printf("The HTTP request failed with error %s\n", err)
	} else {
		data, _ := ioutil.ReadAll(resp.Body)
		fmt.Println(string(data))
	}
}

API_KEY="B433BFF1CDE7450AA38A56BEAC690DD4"
URL="https://itrx.io/api/v1/frontend/index-data"

curl -X GET -H "API-KEY:$API_KEY" "$URL"

Last Updated: