Zum Inhalt
HALOWERK

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/quote

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
chainstringJa
token_instringJa
token_outstringJa
amount_instringJaInput amount in whole token units, as a decimal string, e.g. "1.5".
slippage_bpsintegerNeinCaller slippage tolerance in basis points; only used to derive amount_out_min.
include_multihopbooleanNeinAlso 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."
    }
  }
}

Originalschema öffnen

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

Alle Endpunkte dieses Hubs →