API · x402

Normalize JSON to canonical deterministic sorted-key JSON for reproducible tests and ag…

Normalize JSON to canonical deterministic sorted-key JSON for reproducible tests and agents; verify a supplied JSON object or array with round-trip QA and SHA-256 checksum, within a bounded sanitized sample. Results delivered only after the current x402 payme…

by NAIF Gravity · verified provider · updated 2026-11-03

What it does

Normalize JSON to canonical deterministic sorted-key JSON for reproducible tests and agents; verify a supplied JSON object or array with round-trip QA and SHA-256 checksum, within a bounded sanitized sample. Results delivered only after the current x402 payment challenge.

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/74775.json for the price and payment options.
  3. Pay. Call GET https://naifgravity.com/api/x402/json-normalizer. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with 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, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
$3 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$30xEE39dAa7E6b20Fc772E9FDCA9762B69816738E25300s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0xEE39dAa7E6b20Fc772E9FDCA9762B69816738E25",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "3000000",
    "amountUsd": 3,
    "maxTimeoutSeconds": 300
  }
]

Schemas

Output schema (JSON Schema)
{
  "additionalProperties": true,
  "properties": {
    "productId": {
      "const": "json-normalizer"
    },
    "status": {
      "type": "string"
    }
  },
  "required": [
    "productId",
    "status"
  ],
  "type": "object"
}
Example shape — generated from the schema, not a captured live response
{
  "productId": null,
  "status": "string"
}

Examples

curl
curl "https://naifgravity.com/api/x402/json-normalizer"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://naifgravity.com/api/x402/json-normalizer");
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
res = httpx.get("https://naifgravity.com/api/x402/json-normalizer")
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
NAIF Gravity
Endpoint
https://naifgravity.com/api/x402/json-normalizer
Machine-readable
/resources/74775.json