mezo_decode_log
Decode a raw event log (topics + data) into named fields using a provided ABI on Mezo. Pure computation — no RPC call needed. Pass topics and data from a transaction receipt log entry.
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": {
"topics": "<topics>",
"data": "<data>",
"abi": "<abi>"
},
"name": "mezo_decode_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| abi | Yes | Contract ABI as a JSON array of ABI items, or a JSON-encoded string of that array | |
| data | Yes | Log data field (0x-prefixed hex, ABI-encoded non-indexed event parameters) | |
| topics | Yes | Log topics array. topics[0] is the event signature hash (keccak256 of the event signature) |