Decode event logs to typed JSON (paid $0.003)
decode_logPAID $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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chain": "<chain>"
},
"name": "decode_log"
}
}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. |