文档
TRONENERGY 文档
将波场能量委托集成到您的平台所需的一切。从一笔简单的 TRX 转账到完整的 API 集成,全部覆盖。
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 集成
基于 TronWeb 的完整 Node.js 集成。端到端签名流程,附可直接复制的示例代码。
→
操作指南
租用波场能量
面向最终用户的分步说明。发送 TRX、获得能量、发送 USDT。三步,30 秒。
→
平台状态
99.97%
可用性
13K+
每日
60+
覆盖国家
~3s
平均委托用时