Documentación
TRONENERGY DOCUMENTACIÓN
Documentación para desarrolladores del servicio de alquiler de Tron Energy de TronEnergy. Referencia de API REST, guías de integración para TronWeb, PHP y Python, y tutoriales paso a paso.
DIRECCIÓN DE PAGO DE API
TFqUiCu1JwLHHnBNeaaVKH7Csm4aA3YhZx
Envía TRX a esta dirección. Tu hash de transacción se usa para reclamar la delegación de energía.
Inicio rápido
Delega energía en tres pasos
Envía TRX, firma, reclama. Tres pasos, sin clave de API, sin registro. Precios lineales: 16,250 energía por TRX, mínimo 4 TRX.
const API = 'https://api.tronnrg.com';
const ADDR = 'TFqUiCu1JwLHHnBNeaaVKH7Csm4aA3YhZx';
const delegateTo = 'TRecipientWallet';
// Step 1: Send TRX to the payment address
// Pricing is linear: 16,250 energy per TRX. Minimum 4 TRX (65,000 energy),
// maximum 1,000 TRX. Send 4 TRX for a standard transfer, 8 TRX if the
// recipient has never received USDT (needs 130,000 energy), or any amount
// in between — you get exactly trx × 16,250 energy back.
const trxAmount = 4; // 4 → 65k, 8 → 130k, 16 → 260k, 40 → 650k ...
const payment = await tronWeb.trx.sendTransaction(ADDR, trxAmount * 1e6);
// Step 2: Sign — proves you sent the payment
const message = `${payment.txid}:${delegateTo}`;
const signature = await tronWeb.trx.signMessageV2(message);
// Step 3: Claim the delegation
const result = await fetch(`${API}/delegate`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
tx_hash: payment.txid,
delegate_to: delegateTo,
signature,
}),
}).then(res => res.json());
// Done. Energy arrives in ~3 seconds.
console.log(result.status); // "delegated"
console.log(result.energy); // 65000
console.log(result.delegations[0].tx); // on-chain tx hash (verify on TronScan)
console.log(result.ref); // "nrg_d_42" (for support)
Explorar
Comienza aquí
Descripción general
Qué hace TronEnergy, cómo funciona y los dos caminos de integración disponibles para ti.
→
Referencia
Referencia de API
Todos los puntos finales, parámetros, formatos de respuesta y códigos de error para la API de delegación verificada por firma.
→
Guía de integración
Integración TronWeb
Integración completa de Node.js con TronWeb. Flujo de firma de extremo a extremo con ejemplos listos para copiar y pegar.
→
Guía práctica
Alquilar energía Tron
Paso a paso para usuarios finales. Envía TRX, recibe energía, envía USDT. Tres pasos, 30 segundos.
→
Estado de la plataforma
99.97%
DISPONIBILIDAD
13K+
DIARIO
60+
PAÍSES
~3s
DELEGACIÓN PROMEDIO