| name | evm-tx-debugger |
| description | Debug failed EVM transactions by decoding revert reasons, analyzing gas consumption, parsing events, and explaining execution errors across 7 chains. No API keys required. |
| version | 1.0.0 |
| author | Nihal Nihalani |
| tags | ["debugging","evm","transaction","revert","gas","ethereum","smart-contract","error-analysis","enterprise"] |
| triggers | [{"type":"keyword","keywords":["debug transaction","tx failed","transaction failed","revert reason","why did transaction fail","decode transaction","gas analysis","transaction error","debug tx","parse events","transaction logs"],"priority":95},{"type":"pattern","patterns":["(?i)(debug|decode|analyze|explain|why).*(transaction|tx|transfer)","(?i)(revert|fail|error).*(reason|cause|why)","(?i)(gas|fee).*(analysis|profile|usage|consumption)","(?i)0x[a-fA-F0-9]{64}.*(debug|decode|failed|revert)","(?i)(parse|decode|read).*(events?|logs?|receipt)"],"priority":90},{"type":"intent","intent_category":"evm_transaction_debugging","priority":95}] |
| parameters | [{"name":"tx_hash","type":"string","required":true,"description":"Transaction hash to debug (0x followed by 64 hex characters)"},{"name":"chain","type":"string","required":false,"default":"ethereum","description":"Blockchain network (ethereum, bsc, polygon, arbitrum, base, optimism, avalanche)"},{"name":"analysis_type","type":"string","required":false,"default":"full","description":"Type of analysis (decode, errors, gas, events, full)"}] |
| prerequisites | {"env_vars":[],"skills":[]} |
| composable | true |
| persist_state | false |
| scripts | {"enabled":true,"working_directory":"./scripts","definitions":[{"name":"tx_decoder","description":"Decode transaction input data, method calls, and parameters using Blockscout and 4byte.directory","type":"python","file":"tx_decoder.py","timeout":30},{"name":"error_classifier","description":"Classify and explain transaction failures, revert reasons, and EVM error codes","type":"python","file":"error_classifier.py","timeout":30},{"name":"gas_profiler","description":"Profile gas usage patterns, detect inefficiencies, and compare with network averages","type":"python","file":"gas_profiler.py","timeout":30},{"name":"event_parser","description":"Parse and decode transaction events/logs with human-readable descriptions","type":"python","file":"event_parser.py","timeout":30}]} |