Developer documentation

API workspace
https://api.rentron.xyz/v1
OpenAPI schema

Production API · 7 endpoints

Rentron Energy API

Production API for quoting, ordering, and tracking TRON Energy rentals.

Quick request

// CURL

POST /v1/energy/quotes

curl https://api.rentron.xyz/v1/energy/quotes \
  -X POST \
  -H "Authorization: HMAC-SHA256 {api_key}:{base64_signature}" \
  -H "X-Request-Timestamp: 1784376000" \
  -H "Content-Type: application/json" \
  -d '{
    "address": "TXYZ",
    "energy": 65000,
    "duration_hours": 1
  }'

200 OK

{ "total_trx": "3.200000", "can_afford": true }

Endpoint map

// 07

Overview

// README

Rentron Energy API lets your server rent TRON Energy without manual dashboard work. The integration uses regular HTTPS requests with HMAC authentication and order-status polling.

One-minute summary

Setting Value
Base URL https://api.rentron.xyz/v1
Format JSON with snake_case fields
Authentication HMAC-SHA256 except for GET /v1/time
Order updates Polling only; no webhooks or callbacks
Errors RFC 9457, application/problem+json
OpenAPI https://rentron.xyz/openapi/rentron-energy-v1.json

The API uses your production account balance. There is no separate sandbox API.

Order flow

  1. Read the current rental options and request a quote.
  2. Create an order with a unique client_request_id and the quote's exact total_trx as expected_total_trx.
  3. Store the returned id and Location header.
  4. Poll GET /v1/energy/orders/{id} until both lifecycle_final and delivery_final are true.

Contract guarantees

  • The server fixes the final amount at order creation and returns it as total_trx.
  • Money values are strings with exactly six decimal places.
  • Replaying an identical request with the same client_request_id does not create a duplicate.
  • Missing and foreign-account order IDs return the same 404.
  • Application logic should use the stable error code, never parse detail.

Continue with the quickstart, then centralize the authentication logic in one server-side HTTP client.