文档
TRONENERGY 文档
TronEnergy Tron 能量租赁服务的开发者文档。包含 REST API 参考、TronWeb、PHP 和 Python 集成指南,以及分步教程。
API 支付地址
TFqUiCu1JwLHHnBNeaaVKH7Csm4aA3YhZx
向此地址发送 TRX。您的交易哈希将用于领取能量委托。
快速开始
三步委托能量
发送 TRX、签名、领取。三个步骤,无需 API 密钥,无需注册。线性定价:每 TRX 获得 16,250 能量,最少 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)
探索
从这里开始
概览
了解 TronEnergy 的功能、工作原理以及可用的两种集成方案。
→
参考
API参考
签名验证委托 API 的所有端点、参数、响应格式和错误代码。
→
集成指南
TronWeb集成
Node.js 与 TronWeb 的完整集成。端到端签名流程,包含复制粘贴示例。
→
使用指南
租用Tron能量
面向终端用户的分步说明。发送 TRX、接收能量、转账 USDT。三个步骤,30 秒完成。
→
平台状态
99.97%
在线时间
13K+
日均
60+
国家/地区
~3s
平均委托