Diagnose an x402 endpoint ($0.01 via x402)
x402_diagnoseRead-only
Paid ($0.01 USDC via x402 on Base or Solana): diagnose an x402 endpoint the way a paying agent would, without paying it: the 402 challenge format, every accepts[] option, the resource URL, Solana settlement readiness, which wallets can pay, Bazaar/OpenAPI discovery and the browser paywall. Returns every check with pass/warn/fail and a fix hint. For the endpoint's owner or a developer debugging it; to decide whether to pay someone else's endpoint, use x402_preflight. Same as GET /api/v1/diagnose. The answer carries a signed receipt (EIP-191, bound to your arguments) that proves later which verdict you got.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The x402 endpoint (public http(s) URL), e.g. https://api.example.com/paid | |
| method | No | HTTP method of the paid route (default: GET, then POST) |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| checks | No | Every check with its status, message and hint | |
| accepts | No | Only on an unpaid call: the x402 payment options | |
| overall | No | pass, warn or fail (absent on the payment requirement) | |
| receipt | No | Signed receipt (EIP-191) binding the answer to your arguments |