Back to Developer Portal
API Documentation
Complete reference for the TronEnergyHub REST API. All endpoints require authentication via API key.
Base URL
https://api.tronenergyhub.com/api/v1Quick Start — Create an Order
TypeScript
import { TronEnergyHubClient } from '@tronenergyhub/sdk';
const client = new TronEnergyHubClient({ apiKey: 'teh_live_...' });
const order = await client.orders.create({
recipientAddress: 'TRX_WALLET_ADDRESS',
energyAmount: 32000,
durationHours: 1,
});
console.log('Order ID:', order.id);Endpoints
POST
/api/v1/ordersGET
/api/v1/orders/:idGET
/api/v1/market/priceGET
/api/v1/market/capacityPOST
/api/v1/auth/api-keyGET
/api/v1/supplier/dashboardExplore the full interactive documentation at /docs for request/response examples and more.