Generate an API key and integrate Tron Eneji into your flow.
API keys
Send your API key as a Bearer token in the Authorization header.
Header:
Authorization: Bearer YOUR_API_KEYcURL:
curl -H "Authorization: Bearer KEY" /api/energy/sendPOST /api/energy/send
{
"walletAddress": "T...",
"charges": 1
}{
"success": true,
"orderId": "uuid"
}GET /api/energy/[orderId]
{
"id": "uuid",
"status": "done",
"wallet_address": "T..."
}