Expand description
Analyzes EVM bytecode to extract contract information, even for unverified contracts.
The library can extract function selectors, function arguments, state mutability, and storage layout.
Use the contract_info() function with its builder pattern to analyze contracts. See its documentation for usage examples.
Accuracy and speed comparison with other tools, as well as Python and JavaScript implementations, are available on GitHub
Structs§
- Contains analyzed information about a smart contract
- Builder for configuring contract analysis parameters
- Represents a public smart contract function
- Represents a storage variable record in a smart contract’s storage layout.
Functions§
- Extracts information about a smart contract from its EVM bytecode.
- function_
arguments Deprecated Extracts function arguments and returns them as a string - function_
arguments_ alloy Deprecated Extracts function arguments and returns them as Alloy types - function_
selectors Deprecated Extracts function selectors - function_
state_ mutability Deprecated Extracts function state mutability
Type Aliases§
- A 4-byte function selector
- A 32-byte storage slot identifier in EVM storage.
- Function’s state mutability