X402werk
route / optimize
Takes what the caller holds and what the seller accepts and works out which combinations can settle the amount. All costs are brought into USD, otherwise no comparison is possible: gas on the source chain plus, where needed, the cost of a swap or a bridge. Routes that require a swap or a bridge are marked explicitly - they often look cheaper on paper and are slower and riskier in practice. Every assumption is named in assumptions; nothing is folded in silently.
POST https://x402.halowerk.com/route/optimizeEingaben
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
| amount_usd | number | Ja | Amount to be paid, in USD. |
| available | array | Ja | What the caller holds. |
| accepted_by_seller | array | Ja | What the seller accepts. |
| priority | string | Nein | Which ranking to put first. All three are always returned. |
Vollständiges Eingabeschema anzeigen
{
"type": "object",
"required": [
"amount_usd",
"available",
"accepted_by_seller"
],
"additionalProperties": false,
"properties": {
"amount_usd": {
"type": "number",
"minimum": 1e-06,
"description": "Amount to be paid, in USD."
},
"available": {
"type": "array",
"minItems": 1,
"maxItems": 30,
"description": "What the caller holds.",
"items": {
"type": "object",
"required": [
"chain",
"asset",
"balance"
],
"additionalProperties": false,
"properties": {
"chain": {
"type": "string",
"description": "CAIP-2 chain, for example eip155:8453."
},
"asset": {
"type": "string",
"description": "Asset address or symbol."
},
"balance": {
"type": "number",
"minimum": 0,
"description": "Balance in USD equivalent."
}
}
}
},
"accepted_by_seller": {
"type": "array",
"minItems": 1,
"maxItems": 30,
"description": "What the seller accepts.",
"items": {
"type": "object",
"required": [
"chain",
"asset"
],
"additionalProperties": false,
"properties": {
"chain": {
"type": "string"
},
"asset": {
"type": "string"
},
"scheme": {
"type": "string",
"description": "Payment scheme, usually exact."
}
}
}
},
"priority": {
"type": "string",
"enum": [
"guenstig",
"schnell",
"sicher"
],
"default": "guenstig",
"description": "Which ranking to put first. All three are always returned."
}
}
}Veröffentlichtes Eingabebeispiel
{
"amount_usd": 1e-06,
"available": [
{
"chain": "beispiel",
"asset": "beispiel",
"balance": 0
}
],
"accepted_by_seller": [
{
"chain": "beispiel",
"asset": "beispiel"
}
],
"priority": "guenstig"
}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
- X402werk0,006 USDC
benchmark / price
POSThttps://x402.halowerk.com/benchmark/priceReads the public x402 Bazaar catalogue and finds offers comparable to yours, either from a resource_url whose 402 challenge is fetched without paying, or from a category and description you supply. Every comparable offer is listed with its
- X402werk0,006 USDC
channel / audit
POSThttps://x402.halowerk.com/channel/auditChecks vouchers of a payment channel by computation only - nothing is ever claimed, redeemed or refunded. Signatures are verified cryptographically against the address each voucher claims to be signed by, in EIP-712 form when the typed data
- X402werk0,003 USDC
facilitator / health
POSThttps://x402.halowerk.com/facilitator/healthAsks every known facilitator what it supports and measures how long that answer takes. Reachability, supported chains, supported assets, supported schemes and the current response time are measured live on every call. Limits, and they are t