Thor Decode Event
thorDecodeEventDecode a Thor network contract event by supplying the contract address, topics, and data, returning a readable event description.
Instructions
Decode an event emitted by a contract on Thor network
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": {
"address": "<address>",
"topics": "<topics>",
"data": "<data>"
},
"name": "thorDecodeEvent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The data to decode as hex string starting with 0x | |
| topics | Yes | The topics to decode as hex string starting with 0x | |
| address | Yes | The address of the contract that emitted the event |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No | ||
| network | Yes |