How do I fix my broken x402 endpoint
How do I fix my broken x402 endpoint? Diagnoses it, then returns per problem the concrete change as code for your stack (Express, Next.js, Hono or raw HTTP), filled in with your own payTo, amount, network and route. Bulk: 1000 credits for $0.80 via /api/v1/cr…
by x402-doctor.fizzl.eu · discovered, not yet claimed by its owner · updated 2026-10-08
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
How do I fix my broken x402 endpoint? Diagnoses it, then returns per problem the concrete change as code for your stack (Express, Next.js, Hono or raw HTTP), filled in with your own payTo, amount, network and route. Bulk: 1000 credits for $0.80 via /api/v1/credits.
Tags: x402 · developer-tools · fix · code · bazaar
Call contract
- Method
- GET
- Input
- query parameters
- Output
- json
- Last paid call
- 2026-10-08
{
"url": "https://x402-doctor.fizzl.eu/demo/broken"
}{
"fixes": [
{
"checks": [
"accepts[0]-amount"
],
"code": [
{
"label": "Option field",
"language": "json",
"snippet": "\"amount\": \"10000\"",
"stack": "generic"
}
],
"recipe": "amount",
"severity": "warn",
"steps": [
"Use price: \"$0.01\" instead of an amount."
],
"title": "Amount \"0.01\" → \"10000\" ($0.01)",
"verify": "Run x402 Doctor again.",
"why": "x402 amounts are integer strings in the smallest unit."
}
],
"overall": "fail",
"stack": {
"detected_from": "x-powered-by: Express",
"id": "express",
"name": "Express (@x402/express)"
},
"summary": "1 fix (0 blocking), for Express (@x402/express).",
"unfixed": [],
"url": "https://x402-doctor.fizzl.eu/demo/broken"
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/34983.jsonfor the price and payment options. - Pay. Call
GET https://x402-doctor.fizzl.eu/api/v1/fix. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, Solana, xrpl:0, algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.05 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base, Solana, xrpl:0, algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=
- Demand
- 3 calls · 2 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.05 | 0x6B0F4651eD42893ab58139938175E4a69f175F25 | 300s |
| exact | Solana solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp | USDC | $0.05 | ATWJ82T8nRdQwZnaysB68N5EpaSvLRsQP4h6eWmaJBH9 | 300s |
| exact | xrpl:0 xrpl:0 | 524C555344000000000000000000000000000000 | 0.05 | r9xmBsRr8Ao7jRgjjxreMiAwGiCK2FGwqw | 300s |
| exact | algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8= algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8= | 31566704 | 50000 | LOYVFSQ6ZTS2YWUW4GQ5L6VPP2TPIOXWYDACK53CPOHQQHLDMEMKJDXAX4 | 300s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x6B0F4651eD42893ab58139938175E4a69f175F25",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "50000",
"amountUsd": 0.05,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "ATWJ82T8nRdQwZnaysB68N5EpaSvLRsQP4h6eWmaJBH9",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "50000",
"amountUsd": 0.05,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "xrpl:0",
"payTo": "r9xmBsRr8Ao7jRgjjxreMiAwGiCK2FGwqw",
"asset": "524C555344000000000000000000000000000000",
"amount": "0.05",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=",
"payTo": "LOYVFSQ6ZTS2YWUW4GQ5L6VPP2TPIOXWYDACK53CPOHQQHLDMEMKJDXAX4",
"asset": "31566704",
"amount": "50000",
"maxTimeoutSeconds": 300
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"properties": {
"fixes": {
"items": {
"properties": {
"checks": {
"items": {
"type": "string"
},
"type": "array"
},
"code": {
"items": {
"properties": {
"label": {
"type": "string"
},
"language": {
"type": "string"
},
"snippet": {
"type": "string"
},
"stack": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"recipe": {
"type": "string"
},
"severity": {
"enum": [
"fail",
"warn"
],
"type": "string"
},
"steps": {
"items": {
"type": "string"
},
"type": "array"
},
"title": {
"type": "string"
},
"verify": {
"type": "string"
},
"why": {
"type": "string"
}
},
"required": [
"title",
"why",
"steps",
"code"
],
"type": "object"
},
"type": "array"
},
"overall": {
"enum": [
"pass",
"warn",
"fail"
],
"type": "string"
},
"stack": {
"properties": {
"detected_from": {
"type": "string"
},
"id": {
"enum": [
"express",
"next",
"hono",
"node",
"python",
"generic"
],
"type": "string"
},
"name": {
"type": "string"
}
},
"type": "object"
},
"summary": {
"type": "string"
},
"unfixed": {
"items": {
"type": "object"
},
"type": "array"
},
"url": {
"type": "string"
}
},
"required": [
"url",
"fixes"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"fixes": [
{
"checks": [
"string"
],
"code": [
{
"label": "string",
"language": "string",
"snippet": "string",
"stack": "string"
}
],
"recipe": "string",
"severity": "fail",
"steps": [
"string"
],
"title": "string",
"verify": "string",
"why": "string"
}
],
"overall": "pass",
"stack": {
"detected_from": "string",
"id": "express",
"name": "string"
},
"summary": "string",
"unfixed": [
{}
],
"url": "string"
},
"type": "string"
}Examples
curl "https://x402-doctor.fizzl.eu/api/v1/fix"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paidconst res = await fetch("https://x402-doctor.fizzl.eu/api/v1/fix");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}import httpx
res = httpx.get("https://x402-doctor.fizzl.eu/api/v1/fix")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- x402-doctor.fizzl.eu
- Endpoint
- https://x402-doctor.fizzl.eu/api/v1/fix
- Machine-readable
/resources/34983.json