{"uid":"cap_BGC4UsDXwBZ3PWkQL2x-W","slug":"halowerk-x402werk-route-optimizer-6c9a2a43","name":"HALOWERK x402werk Route Optimizer","description":"HALOWERK x402werk — bezahlte Endpunkte nach x402. Preise in USDC auf Base Mainnet.","url":"https://x402.netzhandwerker.de/route/optimize","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"priority":{"enum":["guenstig","schnell","sicher"],"type":"string","default":"guenstig","description":"Which ranking to put first. All three are always returned."},"available":{"type":"array","items":{"type":"object","required":["chain","asset","balance"],"properties":{"asset":{"type":"string","description":"Asset address or symbol."},"chain":{"type":"string","description":"CAIP-2 chain, for example eip155:8453."},"balance":{"type":"number","minimum":0,"description":"Balance in USD equivalent."}},"additionalProperties":false},"maxItems":30,"minItems":1,"description":"What the caller holds."},"amount_usd":{"type":"number","minimum":0.000001,"description":"Amount to be paid, in USD."},"accepted_by_seller":{"type":"array","items":{"type":"object","required":["chain","asset"],"properties":{"asset":{"type":"string"},"chain":{"type":"string"},"scheme":{"type":"string","description":"Payment scheme, usually exact."}},"additionalProperties":false},"maxItems":30,"minItems":1,"description":"What the seller accepts."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_eTobaWOGF-cRDeUkA2Bso","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Given a buyer's token balances and a seller's accepted payment methods, returns an optimal payment route ranked by cost, speed, or security.","exampleAgentPrompt":"I need to pay a seller $5.00 — I hold 20 USDC on Base (eip155:8453) and 0.01 ETH on Ethereum (eip155:1), and the seller accepts USDC on Base. Give me the cheapest payment route.","exampleUseCases":[{"title":"Cheapest route for micropayment","prompt":"I want to pay $0.50 to a merchant who accepts USDC on Base or ETH on Ethereum. I have $10 USDC on Base and $15 USDC on Polygon — find me the cheapest way to pay."},{"title":"Fastest route for time-sensitive payment","prompt":"I need to pay $25 as fast as possible. The seller accepts USDC on Base or DAI on Arbitrum. I have $30 USDC on Base and $40 DAI on Arbitrum — optimize for speed, not cost."},{"title":"Most secure payment route selection","prompt":"I'm paying $100 to a seller who accepts USDC on Base or USDT on Ethereum. I hold $150 USDC on Base — rank my payment route options by security first."}],"resultDescription":"Returns three ranked payment routes (by guenstig/cheapest, schnell/fastest, and sicher/most secure), each specifying which chain and asset combination to use, based on the caller's available balances and the seller's accepted payment methods. All three rankings are always returned regardless of the requested priority.","failureModes":["No overlapping asset/chain between buyer balances and seller accepted list — returns empty or error","Buyer balance too low to cover amount_usd — may return no viable routes","Invalid CAIP-2 chain identifier format — validation error","amount_usd below minimum threshold of 0.000001 — schema validation failure","Empty available or accepted_by_seller arrays — schema validation failure"],"whenToPreferThis":"Use this endpoint when an AI agent needs to decide which of the user's held tokens and chains to use for a specific payment to a seller with defined accepted assets — particularly in multi-chain wallet scenarios where cost, speed, or security trade-offs matter. Prefer this over manual routing logic when the seller's accepted list and buyer's balances are known and you need a ranked recommendation rather than a single hardcoded path.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:35:13.680Z","isFirstParty":false}