4

402utils · X402 Quote

by 402utils

GETBase

$0.002

per call · USD Coin on Base

Enriched quote for an x402 endpoint: probes it unpaid (never pays, SSRF-checked), decodes {price, asset, network, payTo}, then compares the USD price against the live Bazaar market for its category → {marketContext:{category, medianForCategory, cheaperThanMarket}}. Not just how much, but whether it's fair. Market context is best-effort; the decoded quote returns even if the Bazaar read fails. Neutral — our own endpoints are never featured.

Endpoint

GET https://402utils.com/v1/x402-quote

4

Calls / 30d

3

Unique payers / 30d

Sep 9

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://402utils.com/v1/x402-quote", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://402utils.com/v1/x402-quote?url=https%3A%2F%2F402utils.com%2Fv1%2Frss-to-json" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "description": "Fetch an RSS 2.0 or Atom feed and return clean JSON.",
  "isX402": true,
  "marketContext": {
    "category": "rss",
    "cheaperThanMarket": true,
    "medianForCategory": 0.003,
    "sampleSize": 4
  },
  "network": "eip155:8453",
  "payTo": "0x209693Bc6afc0C5328bA36FaF03C514EF312287C",
  "price": "2000",
  "priceUsd": 0.002,
  "resource": "https://402utils.com/v1/rss-to-json",
  "status": 402
}

Payment details

Pay to0xc55a2d530b53cbad1001e4afd4720b7e71f9c291
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Market Data and the homepage with a featured placement.

Get featured →

More from 402utils & similar services