Skip to content

POST /apiv2/time/order

Order energy cycles for Host Mode addresses.

Endpoint URL

POST https://netts.io/apiv2/time/order

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
X-API-KEYYesYour API key
X-Real-IPYesIP address from whitelist

Request Body

json
{
    "address": "TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE",
    "cycles": 24,
    "energy_per_cycle": 131000
}

Parameters

ParameterTypeRequiredDescription
addressstringYesTRON address in Host Mode
cyclesintegerYesNumber of cycles to order (1-168)
energy_per_cycleintegerYesEnergy amount per cycle

Response

Success Response (200 OK)

json
{
    "code": 0,
    "msg": "Cycles successfully ordered",
    "data": {
        "address": "TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE",
        "cycles_ordered": 24,
        "energy_per_cycle": 131000,
        "total_energy": 3144000,
        "total_cost": "102.50",
        "order_id": "CYCLE123456789"
    }
}

Notes

  • Each cycle represents 1 hour of energy rental
  • Maximum 168 cycles (7 days) can be ordered at once
  • Cycles are processed automatically every hour