{"uid":"cap_QwkZnCsW5NOADVlRfLFUu","slug":"halowerk-x402werk-offer-parser-2d0ed2d0","name":"HALOWERK x402werk Offer Parser","description":"Fetches the 402 challenge of a foreign endpoint without paying anything — no payment header, no signature, no settlement — or parses a challenge you already hold. Returns x402_version, every accepts entry with scheme, network, resolved network name and chain id, asset, symbol, decimals and the amount both in raw units and in human form, plus the resource block and any expiry. amount_human is computed with the decimals of that token, resolved from a known-asset table or read from the chain; where decimals cannot be established it stays null and is listed in unavailable_fields rather than assuming six. parse_warnings names concrete gaps such as a missing description or missing inputSchema, a non-CAIP-2 network, a bridged instead of canonical asset, or an amount sent as a JSON number. It does not judge the service, does not pay, does not verify signatures and does not check whether the seller delivers. Answers for a URL are cached for 60 seconds; age_ms states the age of the fetched challenge.","url":"https://x402.halowerk.com/offer/parse","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","pattern":"^https?://","maxLength":2048,"description":"Absolute http or https URL of the paid endpoint whose 402 challenge should be read. Private, loopback and link-local targets are rejected."},"challenge":{"type":"object","description":"A 402 challenge object you already hold, in x402 v1 or v2 form. Use this instead of url when nothing should be fetched."},"timeout_ms":{"type":"integer","default":6000,"maximum":12000,"minimum":1000,"description":"Time budget for fetching the foreign challenge."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_xyWCrK6KrcEpcjaRc0e7v","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches and parses an x402 HTTP 402 payment challenge from a URL or raw challenge object, returning structured payment requirements including asset, network, amount, and recipient details.","exampleAgentPrompt":"Can you fetch and parse the x402 payment challenge at https://api.example.com/premium-data so I can see exactly how much USDC is required, which network to pay on, and where to send the payment?","exampleUseCases":[{"title":"Pre-flight payment inspection","prompt":"Before I pay to call that endpoint at https://data.someservice.com/api/report, can you parse its 402 challenge and tell me what asset, network, and amount it requires, and what address to pay?"},{"title":"Debugging a 402 challenge object","prompt":"I already have a 402 challenge object from a response — can you parse it for me and show me all the payment details like chain ID, token symbol, amount, and expiry?"},{"title":"Agent workflow payment routing","prompt":"I'm building an agent that needs to call several paid APIs — can you look up the x402 payment requirements for https://x402.partnerapi.io/endpoint and return the scheme, pay-to address, and USDC amount so I can route the payment correctly?"}],"resultDescription":"Returns a structured object containing: cache status (hit/miss), cache age, an array of accepted payment options (each with asset, asset symbol, network name, chain ID, decimals, human-readable amount, raw amount in units, pay-to address, scheme, and max timeout), resource metadata (URL, MIME type, description, schema presence flags), expiry timestamp, fetch timestamp, x402 protocol version, parse warnings, and a list of unavailable fields.","failureModes":["Private, loopback, or link-local target URLs are rejected with an error","Timeout exceeded when fetching the remote 402 challenge (configurable via timeout_ms)","Malformed or unrecognized x402 challenge format may produce parse_warnings or incomplete fields","Remote endpoint does not return a valid 402 response","Network error reaching the target URL"],"whenToPreferThis":"Use this endpoint when you need to inspect or decode an x402 HTTP 402 payment challenge — either by fetching it from a live URL or by parsing a challenge object you already hold — before deciding whether and how to pay. Prefer it over manual HTTP inspection when you need structured, normalized payment details (amount, asset, network, pay-to address) in a single call. It is particularly useful in agentic workflows that must dynamically route micropayments to unknown paid APIs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:39:38.258Z","isFirstParty":false}