If you process USDT-TRC20 payouts or SaaS checkouts, burning raw TRX for energy is silently eating your margin.
The Real Math: Burning TRX vs. Delegated Energy
| Transfer Profile | Burn TRX Cost | Delegated Energy Cost | Net Savings |
|---|---|---|---|
| Single USDT-TRC20 Transfer | ~13.8 TRX ($3.45) | $0.58 | 83.2% |
| 100 Monthly Payouts | $345 | $58 | $287/mo |
You can model your exact batch volume in seconds with our free calculator at ChainFee.
Why Watch-Only BIP-32 xPub Beats Custodial Gateways
Keeping hot private keys on a cloud VPS is an unnecessary risk, and custodial gateways often impose sudden withdrawal holds. Instead, derive per-order deposit addresses from an offline xPub:
import { HDNodeWallet } from "ethers"; export function deriveOrderAddress(accountXpub: string, orderIndex: number): string { const node = HDNodeWallet.fromExtendedKey(accountXpub); return node.deriveChild(0).deriveChild(orderIndex).address; } Production Checklist
- Never store spending keys on your API server.
- Verify incoming webhook payloads with constant-time HMAC-SHA256 signatures.
- Enforce idempotent order fulfillment locks in SQLite or Postgres.
If you want the complete Dockerized multi-chain source kit (TRC-20, Arbitrum, Base, BSC, Polygon, Ethereum, Solana) ready to deploy in 5 minutes, inspect the VaultPay Non-Custodial Gateway Kit ($129 one-time source license).

