Transaction Decoder

See what an EVM transaction actually did: call, events, token transfers, fee, finality.

More options

Try an example: ·

More about this tool

Part of Chainscope Blockchain & Web3 explorers

How it works

Looks up a transaction on Ethereum, Base, Arbitrum, OP Mainnet, Polygon, Avalanche or BNB Chain straight from a public RPC node and decodes it on our server: the function called (from the verified ABI on Sourcify, a built-in table or the signature database), every event log, ERC-20 token transfers with symbols and decimals, gas fee, status and finality. Works without live lookups for raw calldata too.

  • Raw data comes from public JSON-RPC nodes: eth_getTransactionByHash, eth_getTransactionReceipt, eth_getBlockByNumber (timestamp, "finalized" tag) and eth_blockNumber.
  • Function: the first 4 bytes (selector) are matched against, in order, your signature/ABI, the verified ABI of the called contract on Sourcify, a built-in table of common functions, then the Sourcify signature database. The first candidate that ABI-decodes cleanly is used; other candidates are listed (selector collisions exist).
  • Events: topic0 is matched the same way. Without a verified ABI, the first (topics − 1) parameters are assumed to be indexed (flagged as indexingAssumed).
  • Token transfers: Transfer(address,address,uint256) logs with exactly 3 topics (ERC-20; ERC-721 has 4); symbol() and decimals() are read with eth_call.
  • Fake-token check: transfers of a token whose symbol is USDT/USDC/WETH/DAI but whose contract is not the official one on that chain are flagged.
  • Finality: "finalized" if the block is at or below the chain's "finalized" block tag; otherwise "unfinalized" with the confirmation count; "unknown" if the node does not support the tag.

Use this tool in an app

These free programs for your browser have this tool built in, next to everything else the task needs.

  • Chainscope Web3 investigation desk

    Investigate transactions, bridges, contracts, DAOs and wallets in one case file.

    Open Chainscope

  • ObscurIQ OSINT case desk

    Organize public-source research: cases, a research log, pivots and indicators.

    Open ObscurIQ

Related tools

How to use the Transaction Decoder

Turn an EVM transaction hash or raw calldata into a readable function call, events, token transfers, fee and finality.

What it is for

A block explorer shows you 0xa9059cbb000…; you want to know "this sent 5 USDC to Bob". The Transaction Decoder does that translation for Ethereum, Base, Arbitrum, OP Mainnet, Polygon, Avalanche and BNB Chain. Give it a transaction hash and it fetches the transaction and receipt from a public node, then decodes the function call, every event log, ERC-20 token transfers (with symbols and decimals), the fee paid, the status and whether the block is finalized.

It's also useful before you sign: paste the calldata your wallet shows you and see what function it really calls. That's how you catch an approve or setApprovalForAll hidden behind a "claim" button.

It can't simulate what a transaction will do, and decoding without a verified ABI relies on 4-byte signatures, which can collide. When several candidates match, the tool shows the alternatives instead of guessing silently.

Worked example

Example 1 — a plain token transfer (offline). Calldata:

0xa9059cbb0000000000000000000000005aaeb6053f3e94c9b9a09f33669435e7ef1beaed00000000000000000000000000000000000000000000000000000000004c4b40

Result: Calls transfer(address,uint256) with arg0=0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed, arg1=5000000. The selector 0xa9059cbb was found in the built-in table. The amount is raw: calldata alone doesn't say which token contract it is meant for, so decimals are unknown. If it is USDC (6 decimals), 5,000,000 means 5 USDC; for an 18-decimal token it would be a tiny fraction of one token.

Example 2 — a custom function with a struct. On Base, with the signature setConfig((address,uint256,bool),string) supplied by you, the tool decoded the tuple [0x5aAeb…eAed, 42, true] and the string high!. The signature source is "user", meaning your input was used before any database lookup.

How to read the result

  • Transaction (lookup mode): from, to, value, status (success or reverted), block time, gas used, fee in native token, and finality — "finalized" or "unfinalized" with the number of confirmations.
  • Call: selector, signature, where the signature came from (your input, Sourcify verified ABI, built-in table or signature database) and decoded arguments. Alternatives lists other signatures that share the same selector.
  • Logs: each event decoded the same way. indexingAssumed means no verified ABI was available, so the tool guessed which parameters were indexed.
  • Token transfers: ERC-20 movements with human-readable amounts. Fake-token warnings appear when a token calls itself USDT, USDC, WETH or DAI but isn't the official contract.

Tips and common mistakes

  • Always read the token transfers block, not just the call. A "swap" call can move tokens you didn't expect.
  • A transaction can show success and still do nothing useful: check that the events match your intent.
  • Fake-token warnings matter. Scam airdrops often send "USDT" from a lookalike contract to make a wallet history look trustworthy.
  • If the decoded function looks odd, look at the alternatives — a selector collision may have produced the wrong name.
  • Have the contract's ABI? Paste it in the ABI field; it gives real parameter names instead of arg0, arg1.
  • "Unfinalized" with many confirmations is normally safe in practice, but exchanges and bridges often wait for finality.

FAQ

Why are my arguments called arg0 and arg1?

The signature came from a table or database that stores only types, not names. A verified ABI on Sourcify, or one you paste, provides the real names.

Can I decode a transaction that failed?

Yes. The call decodes the same way; the status shows "reverted" and there will usually be no token transfers, though gas was still paid.

Is it safe to paste calldata from my wallet here?

Calldata is public once broadcast and contains no private key. Decoding it before signing is a good habit.

Why does it say the token transfer is ERC-20 and not an NFT?

The tool counts Transfer logs with exactly three topics as ERC-20. ERC-721 NFT transfers have four topics and are listed as ordinary events.

Guide last updated:

For scripts and AI agents

  • JSON API: POST https://transactiondecoder.usefulweb.site/api/v1/calculate (same calculation as this page)
  • Interface description: OpenAPI 3.1 · AI guide: llms.txt
  • MCP server (Streamable HTTP): https://transactiondecoder.usefulweb.site/mcp · tool name transaction_decoder
Example request
curl -s -X POST https://transactiondecoder.usefulweb.site/api/v1/calculate \
  -H 'content-type: application/json' \
  -d '{"mode":"calldata","chain":"ethereum","calldata":"0xa9059cbb0000000000000000000000005aaeb6053f3e94c9b9a09f33669435e7ef1beaed00000000000000000000000000000000000000000000000000000000004c4b40"}'
Feedback · ideas & bug reports welcome