Skip to content

POST /apiv2/time/infinitystart ​

Enable infinity (unlimited) mode for an address already in Host Mode — energy keeps being delegated cycle after cycle until you stop it.

Endpoint URL ​

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

Authentication ​

Provide your API key in the request body (api_key) or the X-API-KEY header. The request IP must be in the whitelist configured for your API key.

Request Body ​

json
{
    "api_key": "your_api_key",
    "address": "TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE"
}

Parameters ​

ParameterTypeRequiredDescription
api_keystringYesAPI key (or X-API-KEY header).
addressstringYesTRON (TRC-20) address, ^T[1-9A-HJ-NP-Za-km-z]{33}$. The address must already be in Host Mode (add it first).

Behaviour ​

  • The address must already exist in Host Mode and be inactive (stopped).
  • Your balance must cover at least one cycle at the current price (checked before activation).
  • The endpoint activates the address, creates an open infinity order, and Host Mode keeps delegating energy cycle after cycle until you call /apiv2/time/stop.

Cycles are billed as they are delegated (one cycle per delegation). The first delegation of an activation costs 4 TRX; every next one costs 2 or 4 TRX depending on the energy your previous transfer actually consumed (≤ 65,000 → 2 TRX, more → 4 TRX). The 8 TRX daily minimum (effective 2026-08-29) and the 2-day idle shutdown apply in infinity mode too — see Host Mode → Cycles and Pricing and Daily minimum.

In Time Status an infinity address reports cycles_ordered and cycles_remaining as null — there is no limit to count down. Read null as “unlimited”, not as “no cycles left”.

Example Requests ​

cURL ​

bash
curl -X POST https://netts.io/apiv2/time/infinitystart \
  -H "Content-Type: application/json" \
  -d '{
    "api_key": "YOUR_API_KEY_HERE",
    "address": "TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE"
  }'

Python ​

python
import requests

resp = requests.post(
    "https://netts.io/apiv2/time/infinitystart",
    json={"api_key": "YOUR_API_KEY_HERE", "address": "TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE"},
    timeout=30,
)
result = resp.json()

if result["code"] == 0:
    print("Infinity mode active, order:", result["data"]["order_id"])
else:
    print("Error:", result["msg"])

Node.js ​

javascript
const axios = require('axios');

axios.post('https://netts.io/apiv2/time/infinitystart', {
    api_key: 'YOUR_API_KEY_HERE',
    address: 'TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE',
}).then(({ data: result }) => {
    if (result.code === 0) console.log('Infinity mode active, order:', result.data.order_id);
    else console.error('Error:', result.msg);
}).catch(err => console.error('Request failed:', err.response?.data || err.message));

Response ​

Success (200 OK) ​

json
{
    "code": 0,
    "msg": "Infinity mode activated successfully",
    "data": {
        "address": "TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE",
        "order_id": 5427,
        "mode": "infinity",
        "status": "active",
        "timestamp": "2026-07-13T05:30:15.123456"
    }
}

Response Fields ​

FieldTypeDescription
codeinteger0 = success, negative = error
msgstringHuman-readable message
data.addressstringThe address activated in infinity mode
data.order_idintegerInternal order identifier
data.modestring"infinity"
data.statusstring"active"
data.timestampstringISO timestamp

Error Responses ​

codemsgCause
-1API key required in X-API-KEY header or request bodyNo API key provided
-1Invalid API key or IP not in whitelistAuthentication failed
-1Invalid TRC-20 address formatBad address format
-1Failed to activate host modeThe address could not be activated — retry
-1Database error activating infinity modeTemporary server-side error — retry
-1Internal server errorUnexpected error — retry or contact support
-2Insufficient balance. Required: X TRX, Available: Y TRXBalance below one cycle price
-4Address not found. Please add address firstAddress not in Host Mode
-5Host mode is already active for this addressAddress is already running
-6There is already an open order for this addressAn open order already exists
json
{ "code": -4, "msg": "Address not found. Please add address first", "data": null }

HTTP status codes ​

Endpoint errors are returned with HTTP 200 and a negative code — check code, not the HTTP status. Error bodies always include "data": null.

Some errors are returned before the request reaches the endpoint. They use a non-200 status and a different body shape:

HTTPBodyCause
402{"detail": {"code": 1004, "msg": "Insufficient funds. Minimum balance is 4 TRX. Please top up your account."}}Account balance is too low
403{"detail": {"code": 1005, "msg": "API key is blocked. Contact support."}}The API key is blocked — contact support
422{"detail": [ … ]}Request body failed validation: a required field is missing or has the wrong type. Note there is no code field in this response

Destination address not allowed (403) ​

The address is checked before it is switched on. If resource delegation to it is not allowed, the request is rejected with HTTP 403 and nothing is written — the address stays inactive and no order is created. The body uses the detail shape:

codemsgMeaning
1006Address is blocked. Contact support.The address is blocked
1007Energy rental to smart contracts is not supported.The address is a smart contract (GasFree wallet addresses are smart contracts too)
1010Resource delegation to this address is not available.Delegation to this address is not available
1011This address is frozen and cannot receive resource delegation.The address is frozen
json
{ "detail": { "code": 1007, "msg": "Energy rental to smart contracts is not supported." } }

Notes ​

  • Infinity mode runs until you stop it with /apiv2/time/stop.
  • Keep enough balance available — cycles are charged as they are delegated.
  • Use this endpoint to resume an address that was previously stopped (it must be inactive).