Pre-Trade Safety
security.mev.shieldPre-trade safety analysis. Evaluates sandwich attack risk, recommends optimal slippage, and suggests mitigations before executing on-chain trades. Every agent should call this before swapping. ($0.05) Use before a proposed swap, bridge, or liquidity action for a composite pre-trade MEV and slippage decision. It is not a historical sandwich scan or live transaction executor; use security.sandwich for past patterns and execute through the agent's own wallet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | EVM chain only. Supported chains: base, ethereum, arbitrum, optimism, polygon, bsc, avalanche, zksync, linea, scroll, blast, mantle, gnosis, polygon-zkevm, mode, sei, celo, manta, taiko, fantom, cronos, opbnb, zora, worldchain, metis, fraxtal, kava, zetachain, filecoin, core-dao, aurora, moonbeam, klaytn, bob, canto, monad, tempo, megaeth, arc, plasma, katana, robinhood, pharos, hyperevm. | base |
| action | No | Trade action type | swap |
| tokenIn | No | Input token symbol | USDC |
| tokenOut | No | Output token symbol | ETH |
| amountUsd | No | Trade size in USD |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| safe | No | Whether trade is safe from MEV | |
| chain | Yes | Blockchain queried | |
| status | No | ||
| warnings | No | ||
| available | No |