evm_detect_sandwich
Detects MEV sandwich attacks by analyzing transactions or blocks for frontrun-victim-backrun patterns, identifying sandwich bots, victims, and estimated profits.
Instructions
Detect MEV sandwich attacks in transactions or blocks.
Analyzes transactions for frontrunning patterns where attackers profit by sandwiching user trades. Identifies sandwich bots, victims, and profit estimates.
PARAMETERS:
chain: Target EVM chain
transactionHash: Check if specific tx was sandwiched (optional)
blockNumber: Analyze all sandwich attacks in block (optional)
victimAddress: Check if address was victimized (optional)
timeWindow: Number of recent blocks to analyze (default: 100)
DETECTION: • Identifies frontrun + victim + backrun patterns • Detects same-attacker sequences • Recognizes DEX interaction signatures • Provides MEV protection recommendations
Returns detected sandwich patterns, statistics, and protection strategies.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chain": "<chain>"
},
"name": "evm_detect_sandwich"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | ||
| timeWindow | No | Recent blocks to analyze (default: 100) | |
| blockNumber | No | Block number to analyze | |
| victimAddress | No | Check if address was sandwich victim | |
| transactionHash | No | Transaction hash to analyze |