chain_decode_log
Decode EVM event log — Decode a raw EVM event log offline from its event signature: checks topic0 = keccak256(canonical signature), decodes indexed params from topics and non-indexed params from data (addresses EIP-55 checksummed, ints as decimal strings). event= (e.g. Transfer(address indexed from,address indexed to,uint256 value)), topics= (comma-separated 32-byte hex, topic0 first) and data= required; anonymous=true for anonymous events. Verdict DECODED or TOPIC0_MISMATCH. 422 on malformed input. Price: $0.002 USDC (Base, via x402).
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": {
"event": "<event>",
"topics": "<topics>",
"data": "<data>"
},
"name": "chain_decode_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | 0x00000000000000000000000000000000000000000000000000000000000f4240 | |
| event | Yes | Transfer(address indexed from,address indexed to,uint256 value) | |
| topics | Yes | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef,0x000000000000000000000000a9d1e08c7793af67e9d92fe308d5697fb81d3e43,0x000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda02913 |