World Monitor
Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 108 tools.
KOkoala73/worldmonitor91k253 new stars in the last 7 days
Fast EVM bytecode analyzer: function selectors, arguments, state mutability, storage layout, proxies. Rust, JS, Python, Go libraries and an MCP server.
EVMole analyzes deployed EVM bytecode, even for unverified contracts. It finds function selectors, infers their arguments and state mutability, recovers persistent and transient storage layouts, detects proxy implementation sources, builds control-flow graphs, and extracts CBOR metadata.
EVMole Decompiler, built on this library, turns bytecode into Solidity-like code that behaves like the original, and flags the gap where it can't be exact. It is a separate hosted service, not part of this repository.
API documentation and usage examples (Node.js, Vite, webpack, Parcel, esbuild)
npm i evmole
import { contractInfo } from 'evmole'
const code = '0x6080604052348015600e575f80fd5b50600436106030575f3560e01c80632125b65b146034578063b69ef8a8146044575b5f80fd5b6044603f3660046046565b505050565b005b5f805f606084860312156057575f80fd5b833563ffffffff811681146069575f80fd5b925060208401356001600160a01b03811681146083575f80fd5b915060408401356001600160e01b0381168114609d575f80fd5b80915050925092509256'
console.log( contractInfo(code, {selectors:true, arguments:true, stateMutability:true}) )
// {
// functions: [
// {
// selector: '2125b65b',
// bytecodeOffset: 52,
// dispatch: 'abi',
// arguments: 'uint32,address,uint224',
// stateMutability: 'pure'
// },
// ...
Documentation is available on docs.rs
let code = hex::decode("6080604052348015600e575f80fd5b50600436106030575f3560e01c80632125b65b146034578063b69ef8a8146044575b5f80fd5b6044603f3660046046565b505050565b005b5f805f606084860312156057575f80fd5b833563ffffffff811681146069575f80fd5b925060208401356001600160a01b03811681146083575f80fd5b915060408401356001600160e01b0381168114609d575f80fd5b80915050925092509256").unwrap();
println!("{:?}", evmole::contract_info(
evmole::ContractInfoArgs::new(&code)
.with_selectors()
.with_arguments()
.with_state_mutability()
)
);
// Contract {
// functions: Some([
// Function {
// selector: [33, 37, 182, 91],
// bytecode_offset: 52,
// dispatch: Abi,
// arguments: Some([Uint(32), Address, Uint(224)]),
// state_mutability: Some(Pure)
// },
// ...
pip install evmole --upgrade
from evmole import contract_info
code = '0x6080604052348015600e575f80fd5b50600436106030575f3560e01c80632125b65b146034578063b69ef8a8146044575b5f80fd5b6044603f3660046046565b505050565b005b5f805f606084860312156057575f80fd5b833563ffffffff811681146069575f80fd5b925060208401356001600160a01b03811681146083575f80fd5b915060408401356001600160e01b0381168114609d575f80fd5b80915050925092509256'
print( contract_info(code, selectors=True, arguments=True, state_mutability=True) )
# Contract(
# functions=[
# Function(
# selector=2125b65b,
# bytecode_offset=52,
# dispatch="abi",
# arguments=uint32,address,uint224,
# state_mutability=pure),
# ...
go get github.com/cdump/evmole/go
package main
import (
"context"
"encoding/hex"
"fmt"
"github.com/cdump/evmole/go"
)
func main() {
code, _ := hex.DecodeString("6080604052348015600e575f80fd5b50600436106030575f3560e01c80632125b65b146034578063b69ef8a8146044575b5f80fd5b6044603f3660046046565b505050565b005b5f805f606084860312156057575f80fd5b833563ffffffff811681146069575f80fd5b925060208401356001600160a01b03811681146083575f80fd5b915060408401356001600160e01b0381168114609d575f80fd5b80915050925092509256")
info, _ := evmole.ContractInfo(context.Background(), code, evmole.Options{
Selectors: true,
Arguments: true,
StateMutability: true,
})
for _, fn := range info.Functions {
fmt.Printf("%s: %s @ %d\n", fn.Selector, *fn.Arguments, fn.BytecodeOffset)
}
// 2125b65b: uint32,address,uint224 @ 52
// b69ef8a8: @ 68
}
Foundry's cast uses the Rust implementation of EVMole
$ cast selectors $(cast code 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2)
0x06fdde03 view
0x095ea7b3 address,uint256 nonpayable
0x18160ddd view
0x23b872dd address,address,uint256 nonpayable
...
$ cast selectors --resolve $(cast code 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2)
0x06fdde03 view name()
0x095ea7b3 address,uint256 nonpayable approve(address,uint256)
0x18160ddd view totalSupply()
0x23b872dd address,address,uint256 nonpayable transferFrom(address,address,uint256)
...
For application code, use one of the language bindings above. For agent-driven bytecode analysis, choose one integration.
Use for one-off analysis and scripts:
npx -y evmole analyze --bytecode 0x...
Install routing and interpretation guidance for supported agents:
npx skills add cdump/evmole --skill evm-bytecode-analysis -g
Expose EVMole as a typed local tool:
npx -y evmole-mcp
All integrations expect deployed/runtime bytecode and run locally without sending bytecode to an EVMole-operated service. See the agent integration guide for setup, schemas, limitations, and privacy details.
FP/FN - False Positive/False Negative errors; smaller is better
| Dataset | evmole rs · js · py · go | whatsabi | sevm | evmhnd | heimdall | gigahorse | |
| coverage2k solidity 2000 addresses 45650 functions |
FP addr | 0 🥇 | 4 | 1 | 56 | 3 | 2 |
| FN addr | 0 🥇 | 11 | 0 🥇 | 224 | 166 | 6 | |
| FP func | 0 🥇 | 10 | 10 | 616 | 27 | 11 | |
| FN func | 0 🥇 | 145 | 0 🥇 | 821 | 342 | 211 | |
| Time | 18ms · 0.2s · 23ms · 79ms | 2.0s | 28s* | 86ms | 111s* | 5922s* | |
| random10k solidity 10000 addresses 223316 functions |
FP addr | 0 🥇 | 19 | 16 | 224 | 7 | 21 |
| FN addr | 0 🥇 | 44 | 1 | 838 | 819 | 16 | |
| FP func | 0 🥇 | 65 | 112 | 3157 | 260 | 92 | |
| FN func | 0 🥇 | 173 | 7 | 4112 | 1021 | 297 | |
| Time | 92ms · 0.6s · 0.1s · 0.5s | 7.1s | 80s* | 0.4s | 533s* | 22870s* | |
| coverage1k vyper 1000 addresses 38759 functions |
FP addr | 0 🥇 | 560 | 0 🥇 | 2 | 0 🥇 | 0 🥇 |
| FN addr | 0 🥇 | 998 | 788 | 525 | 998 | 927 | |
| FP func | 0 🥇 | 560 | 0 🥇 | 5 | 0 🥇 | 0 🥇 | |
| FN func | 0 🥇 | 38759 | 34077 | 16218 | 38759 | 37858 | |
| Time | 70ms · 0.3s · 75ms · 0.2s | 1.9s | 5.4s* | 67ms | 12s* | 1195s* | |
Errors - when at least 1 inferred argument is incorrect: (uint256,string) ≠ (uint256,bytes)
| Dataset | evmole rs · js · py · go | heimdall | |
| coverage2k solidity 45650 functions |
Errors | 8.4% 🥇 3820 |
23.3% 10643 |
| Time | 0.6s · 1.5s · 0.8s · 1.8s | 111s* | |
| random10k solidity 223316 functions |
Errors | 6.8% 🥇 15076 |
21.4% 47878 |
| Time | 3.0s · 6.0s · 3.6s · 8.5s | 511s* | |
| coverage1k vyper 38759 functions |
Errors | 7.4% 🥇 2873 |
100.0% 38759 |
| Time | 0.4s · 0.9s · 0.5s · 1.2s | 12s* | |
Errors - Results are not equal (treating view and pure as equivalent to nonpayable)
Errors strict - Results are strictly unequal (nonpayable ≠ view). Some ABIs mark pure/view functions as nonpayable, so not all strict errors indicate real issues.
| Dataset | evmole rs · js · py · go | whatsabi | sevm | heimdall | |
| coverage2k solidity 45647 functions |
Errors | 0.0% 🥇 18 |
52.2% 23810 |
11.2% 5133 |
19.6% 8951 |
| Errors strict | 9.0% 🥇 4107 |
70.9% 32346 |
62.3% 28429 |
41.3% 18835 |
|
| Time | 7.4s · 7.6s · 7.0s · 14s | 3.1s | 29s* | 112s* | |
| random10k solidity 223273 functions |
Errors | 0.0% 🥇 39 |
48.8% 108928 |
9.3% 20713 |
18.6% 41507 |
| Errors strict | 8.9% 🥇 19940 |
69.9% 156081 |
60.9% 136069 |
40.1% 89519 |
|
| Time | 35s · 34s · 33s · 67s | 12s | 81s* | 512s* | |
| coverage1k vyper 38278 functions |
Errors | 0.1% 🥇 34 |
100.0% 38278 |
96.2% 36814 |
100.0% 38278 |
| Errors strict | 1.2% 🥇 441 |
100.0% 38278 |
98.4% 37650 |
100.0% 38278 |
|
| Time | 34s · 31s · 36s · 71s | 2.0s | 5.5s* | 12s* | |
False Negatives - Valid blocks possibly incorrectly marked unreachable by CFG analysis. Lower count usually indicates better precision.
| evmole rs · js · py · go | ethersolve | evm-cfg | sevm | heimdall-rs | evm-cfg-builder | |
| Basic Blocks | 92.8% 🥇 483212 |
52.5% 273518 |
58.6% 305248 |
37.3% 194368 |
32.6% 169980 |
14.5% 75383 |
| False Negatives | 7.2% 🥇 37496 |
47.5% 247190 |
41.4% 215460 |
62.7% 326340 |
67.4% 350728 |
85.5% 445325 |
| Time | 13s · 24s · 11s · 47s | 888s | 36s | 9.8s | 20s | 359s |
dataset flow-challenge500, 500 contracts, 520,708 blocks
See benchmark/README.md for the methodology and commands to reproduce these results
versions: evmole v0.9.5; whatsabi v0.25.0; sevm v0.7.4; evm-hound-rs v0.1.4; heimdall-rs v0.9.3; gigahorse commit 1b06cef
*: sevm, heimdall-rs, and gigahorse are full decompilers, not limited to extracting function selectors
EVMole uses symbolic execution with a custom EVM implementation to trace how CALLDATA flows through the bytecode:
This approach is more accurate than static pattern matching because it follows the actual execution paths the EVM would take, correctly handling complex dispatchers, proxy patterns, and compiler-specific optimizations from both Solidity and Vyper.
MIT
Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 108 tools.
KOkoala73/worldmonitor91k253 new stars in the last 7 days
Connect to 100+ exchanges and prediction markets, fetch market data, manage orders and accounts.
CCccxt/ccxt45k78 new stars in the last 7 days
Official changedetection.io MCP: web page change tracking, back-in-stock and price alerts.
DGdgtlmoon/changedetection.io36k169 new stars in the last 7 days
Equities, ETFs, indices, currencies and cryptos, categorised.
JEJerBouma/FinanceDatabase9.7k28 new stars in the last 7 days
AI-assisted TradingView chart analysis — connect Claude Code to your TradingView Desktop for personal workflow automation
TRtradesdontlie/tradingview-mcp7.4k75 new stars in the last 7 days
1100+ transparent financial methods calculated from raw statements, not third-party endpoints.
JEJerBouma/FinanceToolkit5.6k15 new stars in the last 7 days