factor_decode_error
Decode contract error data to identify why a transaction reverted. Provide hex error data and an optional signature to interpret the failure.
Instructions
Decode contract error data using Foundry cast. Useful for understanding why a transaction reverted.
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": {
"data": "<data>"
},
"name": "factor_decode_error"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Error data to decode (hex string starting with 0x) | |
| signature | No | Known error signature to try decoding with |