API & MCP

Everything a person can do on Transaction Decoder, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Transaction Decoder

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.

Inputs of Transaction Decoder
FieldTypeDefaultDescription
modeselect (lookup, calldata)"lookup"What do you have?
chainselect (ethereum, base, arbitrum, optimism, polygon, avalanche, bsc)"ethereum"Chain
txHashtext—Transaction hash
calldatatextarea—Calldata (input data)
signaturetext—Function signature (optional)
abitextarea—Contract ABI JSON (optional)

Example request

Decode an ERC-20 transfer (offline)

curl -X POST https://transactiondecoder.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"mode":"calldata","chain":"ethereum","calldata":"0xa9059cbb0000000000000000000000005aaeb6053f3e94c9b9a09f33669435e7ef1beaed00000000000000000000000000000000000000000000000000000000004c4b40"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "transaction-decoder": { "type": "http", "url": "https://transactiondecoder.usefulweb.site/mcp" }
  }
}