Zum Inhalt
HALOWERK

Defiwerk

bridge / quote

Fetches 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 expensive failures this industry has, so trust_assumptions spells out who a user has to trust for that route to hold. No recommendation is forced - three best values by three criteria are given and the caller chooses. Limits: security_model and trust_assumptions.

POST https://defi.halowerk.com/bridge/quote

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
from_chainstringJaSource chain, for example base or ethereum.
to_chainstringJaDestination chain.
tokenstringJaToken contract address on the SOURCE chain, 0x followed by 40 hex characters.
to_tokenstringNeinOptional token address on the destination chain. Defaults to the same asset.
amountstringJaAmount in the smallest unit of the token, as a decimal string.
from_addressstringNeinOptional sender address used for the quote. A neutral address is used when omitted.
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "required": [
    "from_chain",
    "to_chain",
    "token",
    "amount"
  ],
  "additionalProperties": false,
  "properties": {
    "from_chain": {
      "type": "string",
      "description": "Source chain, for example base or ethereum."
    },
    "to_chain": {
      "type": "string",
      "description": "Destination chain."
    },
    "token": {
      "type": "string",
      "description": "Token contract address on the SOURCE chain, 0x followed by 40 hex characters."
    },
    "to_token": {
      "type": "string",
      "description": "Optional token address on the destination chain. Defaults to the same asset."
    },
    "amount": {
      "type": "string",
      "description": "Amount in the smallest unit of the token, as a decimal string."
    },
    "from_address": {
      "type": "string",
      "description": "Optional sender address used for the quote. A neutral address is used when omitted."
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "from_chain": "base",
  "to_chain": "arbitrum",
  "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "to_token": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
  "amount": "1000000"
}

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 →