TRON energy rental API
Plug energy and bandwidth purchases into your wallet, exchange, payment gateway or bot. REST, JSON, webhooks and MCP for AI agents.
One request — energy on the address
Same price as on the website: a floating price per unit of energy plus a fixed fee per order. Right now 65,000 Energy for 1 hour costs 2.29 TRX. Check the price first with GET /quote.
Base URL: https://sunlend.io/api/v1/energy
curl -X POST https://sunlend.io/api/v1/energy/orders \
-H 'Authorization: Bearer slk_…' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: order-42' \
-d '{"address":"TXyz…","volume":65000,"term":"1h"}'What the API does
One-call orders
POST /orders — energy or bandwidth for 15 minutes, 1 hour or 1 day to any address, paid from the account balance.
Automations
Auto top-up when energy drops below a threshold, daily renewal and Tron Charger — energy before every transfer.
Webhooks
Order, delivery and balance events signed with HMAC-SHA256, with retries and a delivery log.
Idempotency
Retrying with the same Idempotency-Key never charges twice — safe to retry on network errors.
Scoped keys
read / purchase / full scopes and a daily spending limit per key. Revocation is instant.
MCP for AI agents
The same API as an MCP server: Claude, Cursor and other agents buy energy with your key.
Getting started
- 1
Sign up
Create an account with email or Google.
- 2
Top up
Fund the balance with USDT TRC-20 or TRX to your permanent account address.
- 3
API key
Issue a key with the scope and limit you need in your account.
- 4
First order
Send POST /orders — energy reaches the address in seconds.