reconstruct_abi
Reconstruct a PARTIAL function/event interface for an EVM contract on a supported EVM chain from its BYTECODE — no source or verification needed. Extracts PUSH4 function selectors + recent event topic0 hashes and resolves the ones public signature DBs (openchain/4byte) know to human signatures. Works on UNVERIFIED contracts because bytecode is ground truth, but it is NOT a full ABI: novel/proprietary selectors DBs have never seen stay unresolved (decompile for those). Use it to understand what an unknown contract does before trusting behavior-based guesses.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | robinhood | hyperevm | ethereum | base | stable | plasma | tempo | codex | |
| address | Yes | EVM contract address (0x…). For a proxy, pass the implementation for the real logic. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | what the reconstruction could and could not resolve | |
| chain | Yes | ||
| events | No | resolved event signatures | |
| address | Yes | ||
| codeSize | No | ||
| functions | No | resolved function signatures | |
| isContract | Yes | ||
| functionCount | No | total PUSH4 selectors found | |
| unresolvedSelectors | No | novel/proprietary selectors no DB knows |