RESTful endpoints for automated energy delegation. Pro plan or higher.
Include your API key in the Authorization header.
Authorization: Bearer ts_live_xxxxxxxxxxxxxxxxxx
Base URL:
https://api.tronify.store/v1
Sandbox: https://sandbox.tronify.store/v1 with ts_test_ prefix.
Standard HTTP codes with JSON error and message.
{
"error": "insufficient_balance",
"message": "Account balance too low for this order",
"request_id": "req_9f3c7a"
}| Code | Meaning |
|---|---|
| 400 | Malformed request |
| 401 | Invalid API key |
| 404 | Not found |
| 429 | Rate limited |
| 500 | Server error |
| Tier | Req/min | Burst |
|---|---|---|
| Pro | 120 | 30 |
| Volume | 600 | 100 |
Headers: X-RateLimit-Remaining, X-RateLimit-Reset.
GET/quote
Real-time price estimate.
| Param | Type | Req | Description |
|---|---|---|---|
transactions | int | Yes | TRC-20 transfers (2–10000) |
duration_hours | int | Yes | Rental hours (1–168) |
{
"energy": 1303000,
"price_trx": 6.75,
"price_usd": 1.62,
"duration_hours": 168,
"is_promo": true,
"valid_until": "2025-06-15T12:00:00Z"
}POST/orders
| Field | Type | Req | Description |
|---|---|---|---|
target_address | string | Yes | TRON address for energy |
transactions | int | Yes | Transfer count |
duration_hours | int | Yes | Rental period |
idempotency_key | string | No | Prevent duplicates |
{
"id": "bid_8f2a9c3d",
"status": "awaiting_payment",
"price_trx": 6.75,
"payment_address": "TLm2p...",
"expires_at": "2025-06-15T12:30:00Z"
}GET/orders/{order_id}
{
"id": "bid_8f2a9c3d",
"status": "active",
"target_address": "TJxK7...",
"energy_delegated": 1303000,
"activated_at": "2025-06-15T12:01:14Z",
"expires_at": "2025-06-22T12:01:14Z",
"tx_hash": "a3f9..."
}| Status | Description |
|---|---|
awaiting_payment | Waiting for TRX |
confirming | Block confirmation |
delegating | Delegation in progress |
active | Energy usable |
expired | Period ended |
refunded | Failed, TRX returned |
GET/account/balance
{
"trx_balance": 142.50,
"active_orders": 3,
"total_energy_active": 3909000,
"lifetime_orders": 847
}POST to your URL, signed with HMAC-SHA256.
X-Tronify-Signature: sha256=abc123...
{
"event": "order.activated",
"data": { ... },
"timestamp": "2025-06-15T12:01:14Z"
}Verify by computing HMAC-SHA256 of the raw body with your webhook secret.
| Event | Fired When |
|---|---|
order.created | New order |
order.payment_received | TRX detected |
order.activated | Energy delegated |
order.expiring | 1h before expiry |
order.expired | Period ended |
order.refunded | Payment returned |