W

Workers · Tools X402 Bazaar Audit

by Workers

POSTBase

$0.01

per call · USD Coin on Base

Diagnose why an x402 seller is invisible on Coinbase Bazaar. POST your 402 PaymentRequired JSON. Free preview: pass/fail + which checks fail. Paid $0.01: every finding with the exact fix (extension shape, AJV schema, description limits). Run before each x402 deploy.

Endpoint

POST https://quietstore-production.edge-7e13f.workers.dev/v1/tools/x402-bazaar-audit

1

Calls / 30d

1

Unique payers / 30d

Aug 20

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://quietstore-production.edge-7e13f.workers.dev/v1/tools/x402-bazaar-audit", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "payment_required": {
      "accepts": [],
      "extensions": {
        "bazaar": {
          "info": {},
          "schema": {}
        }
      },
      "resource": {
        "description": "Example paid resource",
        "mimeType": "application/json",
        "url": "https://example.com/v1/item"
      },
      "x402Version": 2
    }
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://quietstore-production.edge-7e13f.workers.dev/v1/tools/x402-bazaar-audit" \
  -H "Content-Type: application/json" \
  -d '{"payment_required":{"accepts":[],"extensions":{"bazaar":{"info":{},"schema":{}}},"resource":{"description":"Example paid resource","mimeType":"application/json","url":"https://example.com/v1/item"},"x402Version":2}}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "metered": true,
  "result": {
    "findings": [
      {
        "code": "BAZAAR_INPUT_SHAPE",
        "message": "...",
        "severity": "error"
      }
    ],
    "grade": "B",
    "pass": false,
    "score": 72
  },
  "tool": {
    "id": "tool-x402-bazaar-audit",
    "price_version": 1,
    "title": "Will my x402 endpoint show up on Bazaar?"
  }
}

Payment details

Pay to0x8f9ef7f8c4744bfaedaa5d315c21f9770c10f931
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Developer Tools and the homepage with a featured placement.

Get featured →

More from Workers & similar services