Documentation
TRONENERGY DOCS
您需要的一切,都能轻松将Tron Energy委托集成到您的平台中。从简单的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 完全集成。提供端到端的签名流程示例,并可直接复制粘贴使用。
→
操作指南
租赁Tron Energy
面向终端用户的分步指南。发送TRX ,接收Energy ,发送USDT 。三步操作,30 秒即可完成。
→
平台状态
99.97%
正常运行时间
13K+
日常的
60+
国家
~3s
平均委托