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/v1

Quick 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/orders
GET/api/v1/orders/:id
GET/api/v1/market/price
GET/api/v1/market/capacity
POST/api/v1/auth/api-key
GET/api/v1/supplier/dashboard

Explore the full interactive documentation at /docs for request/response examples and more.