Log in
Menu

TRON Internal Transactions: What They Are and How to Read Them

Internal transactions on TRON are calls and TRX moves made by contracts during execution. How to read them, how they differ from TRC-20 events, who pays energy.

Category
Guides
Published
Reading time
8 min

Internal transactions on TRON are the actions a smart contract performs while it runs: calls to other contracts, TRX or TRC-10 tokens it sends, contracts it creates or destroys. They are not separate transactions. They have no signature and no fee of their own, and they appear only inside the parent transaction, in the internal_transactions field of wallet/gettransactioninfobyid. A USDT transfer made by a contract is a special case: the call shows up there, but the amount and the recipient are in the Transfer event in the log.

Below: the fields, three real transactions from Nov 23, 2026 with very different internal activity, how internal transactions differ from events, who pays for them, and a short Node.js reader.

What counts as an internal transaction

According to the internal transactions page of the TRON documentation, the virtual machine records one whenever a contract calls another contract, sends TRX or a TRC-10 token, creates a contract or self-destructs. Each record has these fields:

Field What it holds
hash An identifier of this step inside the parent transaction
caller_address The contract that acted
transferTo_address The contract called, or the account that received value
callValueInfo Amounts sent: callValue in SUN for TRX, plus tokenId for TRC-10
note The kind of step, hex-encoded: 63616c6c is call; also create, suicide and, on nodes that keep extended records, staking and voting steps
rejected true if the parent transaction reverted, so nothing in it took effect

Two practical details. First, the hash is not a transaction ID: we asked TronGrid’s gettransactionbyid for one internal hash from the swap below and got an empty {}. Second, java-tron does not save internal transactions by default. A node keeps them only with vm.saveInternalTx = true in its config, and only from the moment it is switched on; TronGrid returns them, a fresh node of your own may not.

A swap with 18 internal calls

Transaction 7773033b… in block 88,246,000 (Nov 23, 2026, 05:35:57 UTC) is a swap of 30 USDT for TRX. The signer called smartSwapByOrderId on a swap router contract, TTWd2h…m8N4, which is verified on TronScan but has no public name. One signed transaction produced:

  • 18 internal transactions, all call. Sixteen moved no value: they were the router and four other contracts, among them a liquidity pool, calling each other, the USDT contract and WTRX.
  • 2 internal transactions with TRX. The WTRX contract (TNUC9Q…WFR, name WTRX in its contract record) sent 98.091002 TRX to the router, and the router sent 98.091002 TRX to the signer.
  • 7 log entries, 3 of them Transfer events: 30 USDT from the signer into the route, the same 30 USDT into the pool, and 98.091002 WTRX from the pool to the router.

Read only the events and you see the signer paying 30 USDT and receiving nothing. The TRX that came back exists only as an internal transaction. That is the usual reason a wallet shows a TRX balance change “without a transaction”: the income arrived inside someone else’s call.

Swap costs and router settings in general are covered in the SunSwap energy fee article; here the point is where each movement is recorded.

Create, call, self-destruct in one transaction

Transaction 131356ae… in block 88,242,000 (Nov 23, 2026, 02:15:57 UTC) shows the other note types. The signer called a factory contract, and the internal list reads:

  1. create: the factory deployed a new contract;
  2. two call steps from the new contract back to the factory;
  3. two call steps from the new contract to the USDT contract;
  4. suicide: the new contract destroyed itself and named a beneficiary.

The only event is a USDT Transfer of 100 USDT from the new contract’s address to that beneficiary. A contract created a moment earlier already held 100 USDT, so the address was known and funded before any code was there; the code lived for one transaction, moved the USDT and disappeared. The whole sequence used 134,902 energy and 345 bandwidth. It looks like a contract-based way to collect funds from a deposit address; the usual approach, a transfer signed by the deposit address itself, is covered in sweeping deposit addresses.

TRX moved with no event at all

Transaction 77b891ea… in block 88,246,000 has one internal transaction: the called contract sent 0.000001 TRX (1 SUN) to another account. The log is empty. Without internal_transactions there is no record anywhere in the receipt that TRX changed hands. It used 32,258 energy.

How common is this? In six blocks we read on Nov 23, 2026 (one every 50 minutes from 02:15 to 05:35 UTC, plus block 88,246,423 at 05:57), 13 of 2,025 transactions had any internal transactions. A sample, not network statistics, but it says most traffic, plain TRX and USDT transfers, has none.

Internal transactions vs TRC-20 events

internal_transactions log (events)
Written by the virtual machine, automatically the contract code, when it emits an event
TRX and TRC-10 moved by contracts yes, in callValueInfo no
USDT and other TRC-20 amounts no: only the call to the token contract yes, in the Transfer event
Saved by every node no, needs vm.saveInternalTx yes, part of the receipt
Per address on TronGrid /v1/accounts/{address}/internal-transactions /v1/accounts/{address}/transactions/trc20

A TRC-20 balance is a number in the token contract’s storage, so moving it is not a value transfer the virtual machine can record. That is why decoding the event matters; the format is in decoding a USDT transfer event, and watching incoming payments by events in monitoring incoming USDT.

Who pays for internal transactions

Nobody separately. An internal step has no bytes of its own and no signature, so it uses no bandwidth, and its energy is already inside the parent’s energy_usage_total. That total is split between the signer and the deployer of the contract the signer called directly, by that contract’s consume_user_resource_percent; the split is explained in energy for dApps and bots.

The swap above shows it to the unit. The router has consume_user_resource_percent 5, and the receipt reads:

372,640 × 5% = 18,632 energy for the signer; 372,640 - 18,632 = 354,008 for the deployer (origin_energy_usage).

The signer had no energy, so the network burned 18,632 × 100 SUN = 1.8632 TRX, plus 1,404 bandwidth units burned at 1,000 SUN, 1.404 TRX, for a 1,404-byte transaction. Total fee: 3.2672 TRX. Eighteen internal calls added nothing on top.

Reading them in code

Illustrative example; we ran it on Node.js 22.23.2 with TronWeb 6.5.1, used only to turn hex addresses into Base58:

// illustrative example: list internal transactions and TRC-20 Transfer logs of one transaction
import { TronWeb } from 'tronweb';                       // only for address conversion

const TRANSFER = 'ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef';
const b58 = (hex) => TronWeb.address.fromHex(hex.length === 40 ? '41' + hex : hex);

const res = await fetch('https://api.trongrid.io/wallet/gettransactioninfobyid', {
  method: 'POST', headers: { 'content-type': 'application/json' },
  body: JSON.stringify({ value: process.argv[2] }),
});
const info = await res.json();

// 1. Internal transactions: calls between contracts and TRX moved by contracts
for (const it of info.internal_transactions ?? []) {
  const sun = (it.callValueInfo ?? []).reduce((s, v) => s + (v.tokenId ? 0 : v.callValue ?? 0), 0);
  console.log('internal', Buffer.from(it.note, 'hex').toString(), b58(it.caller_address), '->',
    b58(it.transferTo_address), sun ? `${sun / 1e6} TRX` : '', it.rejected ? 'REJECTED' : '');
}

// 2. Token transfers are not internal transactions: they are Transfer events in the log
for (const log of info.log ?? []) {
  if (log.topics[0] !== TRANSFER || log.topics.length !== 3) continue;
  console.log('Transfer', b58(log.address), b58(log.topics[1].slice(24)), '->',
    b58(log.topics[2].slice(24)), BigInt('0x' + log.data).toString(), 'raw units');
}
console.log('energy', info.receipt.energy_usage_total, 'paid by contract owner', info.receipt.origin_energy_usage ?? 0);

For the swap it printed 18 internal call lines, two of them with 98.091002 TRX, three Transfer lines (two with 30000000 raw units of USDT, one with 98091002 of WTRX) and energy 372640 paid by contract owner 354008. For the factory transaction it printed create, four call lines, suicide and one Transfer of 100000000.

How to account for them, step by step

  1. Read the receipt with gettransactioninfobyid, not only the transaction.
  2. Decode note from hex and sum callValue where tokenId is empty: that is TRX moved by contracts.
  3. Skip records with rejected: true; nothing in them happened. Check the parent’s result as described in USDT transaction statuses.
  4. Take token amounts from Transfer events, never from internal calls.
  5. On your own node, enable vm.saveInternalTx before you need the data; it does not fill in history.

FAQ

Do internal transactions cost extra energy or TRX? No separate fee. Their energy is part of the parent transaction’s total, and they use no bandwidth.

Why did TRX arrive on my address with no transaction to me? Most likely a contract sent it during someone else’s call. Look for your address in the internal_transactions of that transaction.

Can I look up an internal transaction by its hash? Not with gettransactionbyid: it is not a transaction. Find it through the parent, or through TronGrid’s per-address internal transactions endpoint.

Is a USDT transfer from a contract an internal transaction? The call to the USDT contract is. The amount and the recipient are only in the Transfer event.

Rent energy

UsdtPull sends energy to your address for a set period. The transfer goes through without burning TRX, your keys stay with you and the energy returns on its own afterwards.

Energy rentalUSDT TRC-20
  1. Address and period

    In the app, you enter your wallet address, the amount of energy and the rental period.

  2. Energy on your address

    Energy lands on your address. The delegation is visible in the block explorer.

  3. No TRX burned

    The transfer uses the rented energy instead of your TRX. When the period ends, the energy returns on its own.

Related posts

  1. Guides

    TRON Nile Testnet: Test TRX, Test USDT and Why Energy Differs

    Nile is TRON's testnet for new features. Where to get test TRX and USDT, how its parameters differ from mainnet, and why a test transfer uses 14,650 energy.

    8 min
  2. Guides

    TRON Multisig Scam: Why a Free Seed Phrase With USDT Is a Trap

    A shared seed phrase opens a TRON wallet with USDT, but another key controls it. How the trap works, how to check any address, and why TRX won't help.

    8 min
  3. Guides

    Is Renting TRON Energy Safe? What a Provider Can and Cannot Do

    Renting TRON energy never needs your key or signature: the provider signs the delegation. What it can and cannot do to your address, and real risks to check.

    8 min