Skip to content

Order energy for 5 minutes

POST
/order5m

Five-minute energy rental from the internal NETTS pools. External providers are not used here, unlike /order1h.

Because of that, a temporary refusal is possible under peak load: on a 503 wait 2–3 seconds and retry, or fall back to /order1h, which has external providers.

The price is lower than the hourly rate. An inactive receiver address is activated automatically and charged once per address; the activation hash arrives in a separate activationHash field.

Authorizations

ApiKeyAuth

API key from the dashboard. Some Host Mode endpoints also accept the key as an api_key field in the request body — this is stated in the schema of the particular operation.

Type
API Key (header: X-API-KEY)

Parameters

Header Parameters

X-Real-IP*

An IP address from the key's whitelist. A request from an address outside the whitelist is rejected with 401.

Type
string
Required
Example"203.0.113.10"
Format
"ipv4"

Request Body

application/json
JSON
{
  
"amount": 131000,
  
"receiveAddress": "TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE"
}

Responses

The order was fulfilled.

application/json
JSON
{
  
"detail": {
  
  
"code": 10000,
  
  
"msg": "Successful, 1.430 TRX deducted",
  
  
"data": {
  
  
  
"orderId": "5Mb4ee11ef86",
  
  
  
"paidTRX": 1.43,
  
  
  
"hash": "3636f97dde244fca17cdc0b2cf7fd157a4b0de94d8fbd4c190d5378ba911dfae",
  
  
  
"delegateAddress": "TNp5gsJhBmZFXgCdgjMgr8pEZ8fHgXUHDq",
  
  
  
"energy": 65050
  
  
}
  
}
}

Playground

Authorization
Headers
Body

Samples

Powered by VitePress OpenAPI