Defiwerk
dex / quote
For 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, Solidly-style pools through their own getAmountOut. Two-hop routes through the wrapped native token and the chain USDC are included, priced by chaining the hops exactly as a real swap would traverse them. Nothing is executed, submitted or handed to a router —.
POST https://defi.halowerk.com/dex/quoteEingaben
| 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, e.g. "1.5". |
| slippage_bps | integer | Nein | Caller slippage tolerance in basis points; only used to derive amount_out_min. |
| include_multihop | boolean | Nein | Also price routes through one intermediate token. |
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, e.g. \"1.5\"."
},
"slippage_bps": {
"type": "integer",
"minimum": 0,
"maximum": 5000,
"default": 50,
"description": "Caller slippage tolerance in basis points; only used to derive amount_out_min."
},
"include_multihop": {
"type": "boolean",
"default": true,
"description": "Also price routes through one intermediate token."
}
}
}Veröffentlichtes Eingabebeispiel
{
"chain": "base",
"token_in": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"token_out": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"amount_in": "0",
"slippage_bps": 50,
"include_multihop": 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,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
- Defiwerk0,006 USDC
mev / risk
POSThttps://defi.halowerk.com/mev/riskTakes 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 minimu