What are internal transactions?
An EVM transaction is “external” when it originates from an externally-owned account (EOA) and is broadcast to the network. Once it begins executing, the contract it calls can in turn invoke other contracts and move native value between accounts. These nested value transfers are called internal transactions (or internal transfers, or traces). Internal transactions are not stored as separate transactions on-chain. They only exist as side effects of the parent transaction’s execution and can only be reconstructed by re-executing the transaction against an archive node. They are essential for accurately tracking:- Native token movement triggered by contracts (e.g. a router contract forwarding ETH to a recipient).
- DEX, lending, and bridge flows where the EOA-visible
to_addressis a contract, not the ultimate recipient of funds. - Wallet balance reconciliation, accounting, and tax reporting - without internal transactions, native-token balance deltas often cannot be explained from external transactions alone.
- Failed sub-calls within a multi-step transaction that still consumed gas.
Enabling traces
Traces are opt-in via a query param on the Transactions API. Internal transfers cost0.05 credits per item where supported:
with-internal- includes internal transfers/transactions in the response.
internal_transfers array describing the from_address, to_address, value (in wei), and gas_limit of each internal transfer.
API endpoints with trace support
- Get a transaction
- Get earliest transactions for address (v3)
- Get recent transactions for address (v3)
- Get paginated transactions for address (v3)
Input data (with-input-data)
The same tracing pipeline also exposes a transaction’s input data through a second query param, with-input-data. Like with-internal, it costs 0.05 credits per item where supported.
with-input-data is accepted on two endpoints, which is a smaller set than with-internal:
The two supported endpoints differ in how they decline.
transaction_v2 concerns one transaction on one chain, so it can fail loudly with a 501. The allchains endpoint is explicitly multi-chain, so failing the whole request because one requested chain lacks the feature would be unhelpful; it returns every transaction and attaches input_data only to the ones whose chain can supply it. Check for the field per item rather than assuming the whole page has it.
What you get
When enabled, the transaction item gains aninput_data object with exactly one field:
with-input-data=true, that same request returns the transaction with no input_data field at all.
method_id is the 4-byte function selector: the first four bytes of the transaction’s input field, which is the Keccak-256 hash of the function signature truncated to four bytes. It tells you which function the transaction called.
It is deliberately not the rest of the calldata and not the decoded arguments. If you need the argument values, you still have to fetch the raw input yourself and decode it against the contract ABI. A plain native-token transfer has empty calldata and therefore no method ID.
What it is useful for
- Labelling a transaction’s intent without an ABI lookup.
0xa9059cbbis an ERC-20transfer,0x095ea7b3is anapprove. A selector is enough to bucket transactions by action. - Filtering before you decode. Selectors are cheap to compare, so you can discard the transactions you do not care about before paying for ABI resolution.
- Telling apart calls to the same contract. Two transactions to one router address look identical until you can see that one is a swap and the other is a liquidity withdrawal.
A selector is a truncated hash, so it is not unique.
0xa9059cbb is ERC-20 transfer(address,uint256), but five other published signatures hash to the same four bytes; 0x095ea7b3 is approve(address,uint256) plus three others. In practice the contract you are calling disambiguates it, but do not treat a selector as proof of intent on its own.Which chains serve it
GET /v1/chains/ returns is_input_data_supported for every chain, and that flag is the predicate the endpoints gate on. Where it is true the chain serves the param. Where it is false the request returns 501 This chain does not currently support flag: with-input-data. Probed against the live gate on all 43 chains on 2026-10-15, the flag and the gate agreed on every one.
To check a single chain by hand, call Get a transaction with with-input-data=true. The capability gate runs before the transaction hash is validated, so you do not need a real hash to probe it: a 501 naming the flag means the chain does not serve it, and anything else means it does.
is_input_data_supported and is_internal_tx_supported are independent of each other rather than a ladder, and a chain can carry either one without the other. There is also is_historical_balances_supported, which follows neither: btc-mainnet supports historical balances and neither tracing feature.
with-internal vs. raw trace_* / debug_* (JSON-RPC)
A common point of confusion is how the Foundational API’s with-internal param relates to the raw trace_* and debug_* JSON-RPC methods. They solve different problems.
with-internal is built for wallet-level internal transaction history: ask for one address and get back its internal transfers, already decoded and attached to each transaction, across the supported chains. The raw trace_* / debug_* methods are low-level per-transaction or per-block primitives - powerful, but they do not answer “show me this wallet’s internal transfers” without significant client-side work.
Why raw RPC is impractical for wallet history
Reconstructing a single wallet’s internal-transfer history from raw traces is expensive and chain-dependent:trace_filter(Ethereum / Erigon-style nodes) returns matching internal calls directly, but a wallet can be either the sender or the recipient, so you must scan the block range twice - once withfromAddressand once withtoAddress. Even chunking at 1M blocks per request, a full-history scan is roughly 50 calls per direction (~100 total) on Ethereum alone.trace_filteris unsupported on OP-stack L2s (and many other chains) unless you run the node yourself or your RPC vendor has explicitly enabled it. The fallback isdebug_traceBlockByNumber, which forces you to fetch and trace every block in the range and then filter client-side for calls whosefromortomatches the wallet - far more calls and far more data to walk.- In both cases you still have to walk the resulting call tree yourself and decode raw payloads to make the data usable.
The honest trade-off
For a single transaction oneth-mainnet, calling trace_transaction (or debug_traceTransaction) directly over raw RPC is cheaper than the Foundational API. What with-internal adds is:
- A decoded payload rather than raw call frames.
- No client-side call-tree walking - internal transfers arrive flattened and attached to each transaction.
- Uniform behavior across chains, including chains where
trace_filteris unavailable.
eth_calls, but for anything beyond one-off lookups the enriched, multi-chain endpoint is what saves you the integration work.