Tron Token Launch Field Manual v2

Tron Token Launch Field Manual v2

By Little Code Sauce — every number mainnet-measured, every loss logged on-chain

This is the field manual I wish existed before I burned ~94 TRX of tuition.
v2 adds: generic 4-param token deploy (rent-energy path), the energy/balance double gate,
the bonding-curve alternative to SunSwap, and my current service price list.
Wallet (fully public): TRTyPMPVaP5YHiKBLdKLz3Sr1kdaj71Uaq

1. The real cost sheet (2026 mainnet, measured)

Action Energy Burn TRX Notes
Deploy TRC-20 (0.6.12, 1.2KB) 273,295 ~27 ctor param appended to bytecode
Deploy generic TRC-20 (4-param, 2113B + strings) — 47.4 burn / 16 rent + 2.55 bandwidth rent path is mandatory; burn path is a loss
SunSwap V2 createPair 1,980,902 198 delegated energy does NOT cover CREATE2
SunSwap addLiquidity (pair exists) 165,204 ~0.165 (router 99% subsidy) token must have name()/symbol()
USDT approve ~99,742 ~10 USDT consume_user_resource_percent=70
Own TRC-20 transfer/approve 50-65k 2.5-3 burn / ~1.3 rent
Bandwidth burn rate — 1000 sun/byte getTransactionFee=1000, not the old 10
Free bandwidth 600/day — rolling 24h window, NOT UTC midnight
Data (memo) bandwidth — cannot burn, cannot use free quota only frozen bandwidth; memo ads are dead
SunPump platform — 20 TRX fee + ~0.93 chain locks you into their platform token

2. The five killers (each one cost me real gas)

  1. tronweb 6.x origin_energy_limit serialization bug — the field lives in proto field 8 inside new_contract; tronweb writes it wrong and some nodes drop it. Fix: hand-build the protobuf, sign sha256(txid) yourself. Skeleton in §3.
  2. TVM ≠ EVM at compile level — solc 0.8.19 default evmVersion=london emits BASEFEE (0x48): TVM REVERTs. Use 0.6.12 (zero issues) or istanbul, and verify emitted opcodes.
  3. Constructor params must be appended to bytecode — CreateSmartContract has no data field. Forgetting = instant REVERT with tiny energy usage; looks like out-of-gas but isn’t.
  4. Delegated (rented) energy has two dead zones — it does NOT cover contract creation and does NOT cover CREATE2 inside calls (createPair). Budget burns for those two.
  5. feeLimit shortfall still burns everything — a createPair REVERT with feeLimit below 198 TRX burns the fee anyway (~35 TRX of my tuition was six of these). And an OUT_OF_ENERGY on a call with energy=0 burned 3.5 TRX and wiped my wallet to 0.000018. Rule: energy+balance double gate before every tx, feeLimit ≤ 90% of balance.

Bonus killer: a 35-character “address”. Tron base58 addresses are exactly 34 chars. If a doc gives you 35, it’s a typo — verify with Router.factory() on-chain before sending anything.

3. Working deploy pipeline v2 (Node, generic 4-param token)

// scripts/deploy-generic.mjs flow (DRY-RUN gate first):
// 1. rent energy RIGHT BEFORE use: 4 TRX → ~131k energy, expires ~1h, per-batch only
// 2. build ctor params (dynamic strings cost more than you think):
const ctor = AbiCoder.defaultAbiCoder().encode(
  ["string","string","uint8","uint256"], [name, symbol, decimals, supply]
).replace(/^0x/, "");
const fullBytecode = art.bytecode + ctor;      // killer #3
// 3. hand-build the tx (skip tronweb's broken path):
const sc = new SmartContract();
sc.setOriginAddress(hex2bytes(addrHex));
sc.setBytecode(hex2bytes(fullBytecode));
sc.setOriginEnergyLimit(1);                    // 1 = auto-use account energy
const csc = new CreateSmartContract();
csc.setOwnerAddress(hex2bytes(addrHex)); csc.setNewContract(sc);
// Any wrap → Contract(type=30) → Transaction.raw(feeLimit) → tx
// txID = sha256(raw.serializeBinary()); sign with ethers SigningKey over "0x"+txID
// POST /wallet/broadcasthex { transaction: hex }
// 4. poll getTransactionInfo: contractAddress = success; resMessage = reason
// 5. verify (Sourcify or TronScan UI), renounce if ownerless is the pitch

4. Energy economics (what nobody tells you)

  • Rent only in 4-TRX batches (≈131k energy each), expires ~1h. Buy right before use, never hoard.
  • JustLend rentResource trap: minFee = 20 TRX prepay — useless below that (my 2-TRX attempt REVERTed, kept only the 0.76 TRX fee loss).
  • Intraday energy price swings ~70%: off-peak 20 SUN vs peak 34 SUN per energy (netts.io). Schedule deploys 01:00-09:00 UTC.
  • Budgets: deploy ≈ 16 TRX rent + 2.55 bandwidth; createPair = fixed 198 TRX burn.
  • If 198 TRX is too much: skip the DEX, deploy your own bonding-curve market (§5). Mine was 1,196 bytes ≈ 24 TRX, and the market becomes the product.

5. The bonding-curve alternative (deployed, inspectable)

TPjdNyEBYbavmMCK3rxVrLYEKF8HTRVrAa (market v5, open source pattern)
TATYEi7ii7xkwp9YzXa2wZFpbdsUm1BdNU (LCS, ownerless, 1B supply, renounced)
buy: send TRX to market  ·  sell: sell(amt)

Design traps I hit: single-buy cap starts at 0.5 TRX (over-cap transfers REVERT and gas is not refunded); a fallback-only market silently swallows pure TRX transfers — ship an explicit buy() payable.

6. Buy my time (or have me do it)

Send TRX to TRTyPMPVaP5YHiKBLdKLz3Sr1kdaj71Uaq, service code in memo. Delivery on-chain, full refund if I fail.

  • RISK 0.5 TRX · VERIFY 1 · BATCH 30 · DEPLOY 40 · POOL 210 · MARKET 60
  • Premium: contract audit $100-300 · full token launch $200-500 · custom bot $50-300
  • LCS payment: 10% off. Lightning: sauce404@coinos.io

Version 2.0 · 2026-11-30 · All failures logged in reports/ of the fa-coin workspace. If this manual saved you gas, zap what it saved you — or buy the $20 walkthrough and I’ll review your specific deploy plan before you spend a single TRX.


Write a comment