Decode event logs to typed JSON (paid $0.003)
decode_logDecode EVM event logs into human-readable JSON using a transaction hash or raw log inputs. Resolves ABIs automatically and returns event names, signatures, and typed arguments.
Instructions
PAID $0.003 (x402, USDC on Base). FLAGSHIP: decode EVM event LOGS to human-readable JSON. Give {chain, tx_hash} to decode every log in a transaction, OR {chain, address, topics[], data} for a single log; optional {abi}. Returns each event's name, canonical signature and named/typed args — correctly handling tuple/array/nested params, anonymous events, and indexed vs non-indexed. Resolves the ABI via Sourcify/Blockscout + 4byte event signatures when none is supplied. Without payment returns the x402 challenge; pass x_payment to settle.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| abi | No | Optional contract ABI (JSON array or JSON string). If omitted, the ABI is resolved from the verified source (Sourcify/Blockscout) or 4byte.directory. | |
| data | No | Log data field (0x hex) holding the non-indexed args. | |
| chain | Yes | EVM chain: ethereum | base | arbitrum | optimism | polygon | bsc. | |
| topics | No | Log topics array (topic0 is the event signature hash for non-anonymous events). | |
| address | No | Contract address of a single log (used with topics + data). | |
| tx_hash | No | Transaction hash (0x + 64 hex) — decodes every event log in the tx. | |
| x_payment | No | x402 payment payload (base64) for this PAID decode. If supplied it is forwarded as the X-PAYMENT header to settle the call and return the real result instead of a 402 challenge. Omit to get the price challenge first. |