Defiwerk
mev / risk
Takes chain, token pair, input amount and slippage tolerance, finds the pool the trade would most likely use and reads its live state. The maximum the caller can lose is arithmetic and exact: the gap between the quoted output and the minimum output their own tolerance permits. The attacker profit is an estimate and labelled as one — the profit-maximising front-run size is searched for inside a constant-liquidity pool model, bounded by the largest front-run the caller own tolerance still.
POST https://defi.halowerk.com/mev/riskEingaben
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
| chain | string | Ja | |
| token_in | string | Ja | |
| token_out | string | Ja | |
| amount_in | string | Ja | Input amount in whole token units as a decimal string. |
| slippage_bps | integer | Nein | |
| route | string | Nein | Optional pool address to assess instead of the automatically chosen one. |
| scan_history | boolean | Nein | Scan past Swap events for actual sandwiches. Costs time; switch off for a faster answer. |
Vollständiges Eingabeschema anzeigen
{
"type": "object",
"required": [
"chain",
"token_in",
"token_out",
"amount_in"
],
"additionalProperties": false,
"properties": {
"chain": {
"type": "string",
"enum": [
"base",
"ethereum",
"arbitrum",
"optimism",
"polygon"
]
},
"token_in": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"token_out": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"amount_in": {
"type": "string",
"pattern": "^[0-9]+(\\.[0-9]+)?$",
"description": "Input amount in whole token units as a decimal string."
},
"slippage_bps": {
"type": "integer",
"minimum": 1,
"maximum": 5000,
"default": 50
},
"route": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$",
"description": "Optional pool address to assess instead of the automatically chosen one."
},
"scan_history": {
"type": "boolean",
"default": true,
"description": "Scan past Swap events for actual sandwiches. Costs time; switch off for a faster answer."
}
}
}Veröffentlichtes Eingabebeispiel
{
"chain": "base",
"token_in": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"token_out": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"amount_in": "0",
"slippage_bps": 50,
"scan_history": true
}Ergebnis & Dokumentation
Maschinenlesbare Dokumentation dieses Hubs
Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.
Weitere Endpunkte dieses Hubs
- Defiwerk0,008 USDC
bridge / quote
POSThttps://defi.halowerk.com/bridge/quoteFetches live offers from a public bridge aggregator and reports for every option what arrives, what it costs in fees and gas, and how long it usually takes. The security model is given equal weight to the price: bridges are the most expensi
- Defiwerk0,005 USDC
dex / quote
POSThttps://defi.halowerk.com/dex/quoteFor a given chain, token pair and input amount, every connected DEX is queried through its own contracts: Uniswap V3 through the Quoter via eth_call across all fee tiers, constant-product pools through the pool maths on live reserves, Solid
- Defiwerk0,006 USDC
lending / health
POSThttps://defi.halowerk.com/lending/healthResolves pool, price oracle and data provider through the protocol address provider rather than hard-coded addresses, then reads every reserve the wallet touches: collateral amounts, variable and stable debt, LTV, liquidation threshold, liq