tools.evm_decompiler module
EVM Bytecode Decompiler Tool
Decompiles Ethereum (EVM) bytecode into readable Solidity-like code using Heimdall-rs. Supports raw bytecode, contract addresses (with RPC), and ENS names.
- async tools.evm_decompiler.run(target, rpc_url=None, include_solidity=True, include_yul=False, skip_resolving=False, timeout=120000)[source]
Execute this tool and return the result.
- Parameters:
target (
str) – The target value.include_solidity (
bool) – The include solidity value.include_yul (
bool) – The include yul value.skip_resolving (
bool) – The skip resolving value.timeout (
int) – Heimdall symbolic-execution timeout in milliseconds per function (default: 120000). Note this is distinct from the overall subprocess timeout (DEFAULT_TIMEOUT seconds) enforced separately.
- Returns:
Result string.
- Return type: