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.

  • rpc_url (Optional[str]) – The rpc url value.

  • include_solidity (bool) – The include solidity value.

  • include_yul (bool) – The include yul value.

  • skip_resolving (bool) – The skip resolving value.

  • timeout (int) – Maximum wait time in seconds.

Returns:

Result string.

Return type:

str