POST /apiv2/time/add
Add a TRON address to Host Mode for automated energy management.
Endpoint URL
POST https://netts.io/apiv2/time/add
Request Headers
Header | Required | Description |
---|---|---|
Content-Type | Yes | application/json |
X-API-KEY | Yes | Your API key |
X-Real-IP | Yes | IP address from whitelist |
Request Body
json
{
"address": "TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE",
"energy_threshold": 65000,
"auto_refill": true
}
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
address | string | Yes | TRON address to add to Host Mode |
energy_threshold | integer | Yes | Minimum energy threshold (when to trigger refill) |
auto_refill | boolean | No | Enable automatic energy refill (default: true) |
Response
Success Response (200 OK)
json
{
"code": 0,
"msg": "Address successfully added to Host Mode",
"data": {
"address": "TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE",
"status": "active",
"energy_threshold": 65000,
"auto_refill": true,
"created_at": "2025-08-31T10:30:00Z"
}
}
Notes
- Host Mode monitors addresses and automatically provides energy when threshold is reached
- Maximum 5 addresses per API key in Host Mode
- Energy thresholds can be between 10,000 and 500,000