Sandwich Scanner
security.sandwichBatch scan an address's recent transactions for MEV sandwich attacks. Checks front-run + back-run patterns in surrounding transactions. Use to inspect historical sandwich patterns around an address. It is not a pre-trade protection decision; use security.mev.shield before a swap or liquidity action.
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": {
"address": "<address>"
},
"name": "security.sandwich"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | EVM chain (default: base) | |
| address | Yes | Address to scan for sandwich attacks |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | Blockchain queried | |
| count | No | ||
| sandwiches | No | Detected sandwich attacks |