API · x402

JSON canonicalization — canonicalize structured data with RFC 8785 JCS; return canonica…

JSON canonicalization — canonicalize structured data with RFC 8785 JCS; return canonical JSON text, UTF-8 byte length and SHA-256 hash for integrity checks, signature preparation and deduplication. Uses binary64 rounding and strict Unicode/duplicate-key check…

by data-tools.use.x402atlas.com · discovered, not yet claimed by its owner · updated 2026-10-12

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

JSON canonicalization — canonicalize structured data with RFC 8785 JCS; return canonical JSON text, UTF-8 byte length and SHA-256 hash for integrity checks, signature preparation and deduplication. Uses binary64 rounding and strict Unicode/duplicate-key checks; rejects negative zero, overflow and nonzero underflow.

Tags: json-canonicalize · rfc8785 · jcs · sha256 · structured-data · bazaar

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/34874.json for the price and payment options.
  3. Pay. Call GET https://data-tools.use.x402atlas.com/json-canonicalize. 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, Polygon, Arbitrum One, Solana, 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.01 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base, Polygon, Arbitrum One, Solana
Calls (30d)
3 · 2 unique payers (third-party data from the public x402 Bazaar)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.010x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2300s
exactPolygon
eip155:137
USDC$0.010x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2300s
exactArbitrum One
eip155:42161
USDC$0.010x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2300s
exactSolana
solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
USDC$0.01ASt6xvRyQ7ntERsmcYVMdLqZvz1GEN8Fzexzq62tXrNQ300s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "10000",
    "amountUsd": 0.01,
    "maxTimeoutSeconds": 300
  },
  {
    "scheme": "exact",
    "network": "eip155:137",
    "payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
    "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
    "amount": "10000",
    "amountUsd": 0.01,
    "maxTimeoutSeconds": 300
  },
  {
    "scheme": "exact",
    "network": "eip155:42161",
    "payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
    "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
    "amount": "10000",
    "amountUsd": 0.01,
    "maxTimeoutSeconds": 300
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "payTo": "ASt6xvRyQ7ntERsmcYVMdLqZvz1GEN8Fzexzq62tXrNQ",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "10000",
    "amountUsd": 0.01,
    "maxTimeoutSeconds": 300
  }
]

Schemas

Output schema (JSON Schema)
{
  "properties": {
    "example": {
      "additionalProperties": false,
      "description": "Complete structured-data result",
      "properties": {
        "_atlas": {
          "additionalProperties": false,
          "description": "Optional Atlas documentation metadata injected by the platform",
          "properties": {
            "docs": {
              "description": "Documentation URL",
              "format": "uri",
              "maxLength": 512,
              "type": "string"
            },
            "related": {
              "description": "Related Atlas routes",
              "items": {
                "additionalProperties": false,
                "description": "Related route",
                "properties": {
                  "bridge": {
                    "description": "Bridge name",
                    "type": "string"
                  },
                  "docs": {
                    "description": "Documentation URL",
                    "type": "string"
                  },
                  "summary": {
                    "description": "Capability summary",
                    "type": "string"
                  },
                  "url": {
                    "description": "Paid route URL",
                    "type": "string"
                  }
                },
                "required": [
                  "bridge",
                  "url",
                  "docs",
                  "summary"
                ],
                "type": "object"
              },
              "maxItems": 3,
              "type": "array"
            }
          },
          "required": [
            "docs"
          ],
          "type": "object"
        },
        "algorithm_version": {
          "const": "rfc8785-jcs-v1",
          "description": "Pinned deterministic algorithm or profile",
          "type": "string"
        },
        "canonical_json": {
          "description": "RFC 8785 JCS text for hashing or signature preparation; UTF-16 key order and ECMAScript binary64 numbers, without Unicode normalization",
          "type": "string"
        },
        "input": {
          "additionalProperties": false,
          "description": "Normalized input summary",
          "properties": {
            "node_count": {
              "description": "Value nodes",
              "maximum": 50000,
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "node_count"
          ],
          "type": "object"
        },
        "operation": {
          "const": "json-canonicalize",
          "description": "Stable capability operation, identical across packaging variants",
          "type": "string"
        },
        "sha256": {
          "description": "Lowercase SHA-256 of canonical UTF-8 bytes",
          "pattern": "^[0-9a-f]{64}$",
          "type": "string"
        },
        "utf8_bytes": {
          "description": "UTF-8 bytes in canonical text",
          "maximum": 1048576,
          "minimum": 0,
          "type": "integer"
        },
        "warnings": {
          "description": "Deterministic warnings; empty array when none",
          "items": {
            "description": "Warning message; no original cell or document values",
            "type": "string"
          },
          "maxItems": 100,
          "type": "array"
        }
      },
      "required": [
        "algorithm_version",
        "canonical_json",
        "input",
        "operation",
        "sha256",
        "utf8_bytes",
        "warnings"
      ],
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}
Example shape — generated from the schema, not a captured live response
{
  "example": {
    "_atlas": {
      "docs": "https://example.com",
      "related": [
        {
          "bridge": "string",
          "docs": "string",
          "summary": "string",
          "url": "string"
        }
      ]
    },
    "algorithm_version": "string",
    "canonical_json": "string",
    "input": {
      "node_count": 0
    },
    "operation": "string",
    "sha256": "string",
    "utf8_bytes": 0,
    "warnings": [
      "string"
    ]
  },
  "type": "string"
}

Examples

curl
curl "https://data-tools.use.x402atlas.com/json-canonicalize"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://data-tools.use.x402atlas.com/json-canonicalize");
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://data-tools.use.x402atlas.com/json-canonicalize")
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
data-tools.use.x402atlas.com
Endpoint
https://data-tools.use.x402atlas.com/json-canonicalize
Machine-readable
/resources/34874.json