Rent bandwidth for 24 hours
Bandwidth rental on TRON for 24 hours, delegated to a recipient address. The bandwidth is reclaimed automatically when the period ends.
Available on request only. Daily rental is enabled for an account by NETTS support; without it every request is rejected with 5009.
The limits are set for your account: the minimum and maximum amount of one order, the maximum amount on one address and the maximum amount on all your addresses together. Only active daily rentals count against them.
If the new order would take the address above your per-address limit, your oldest daily rental on that address is reclaimed in full first, then the new order is delegated. If it would take the sum of your daily rentals above your total limit, reclaimOldest: true reclaims your oldest daily rental on any address first; without it the order is rejected with 5010. If a reclaim does not complete, no new order is created and nothing is charged (5012). The cost of a reclaimed rental is not refunded.
Daily orders of one account are processed one at a time. Use an HTTP timeout of at least 120 seconds. Status and early reclaim use /bandwidth/status/{orderId} and /bandwidth/reclaim/{orderId}.
Idempotency works as for /bandwidth, with 1d in place of the period: base64(HMAC-SHA256(api_key, "receiveAddress:amount:1d:nonce")). A repeat with the same key returns 208 with the result of the first attempt, successful or not.
Authorizations
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.
Parameters
Header Parameters
Idempotency key, base64, 16–64 characters from A–Z a–z 0–9 + / = _ -. A malformed key is rejected with 400 (5004).
"^[A-Za-z0-9+/=_-]{16,64}$"Request Body
Responses
The order was processed. Read detail.code: 10000 — bandwidth delegated, 10003 — a test run.