Skip to content
Fourohtwo

JSON canonicalization

canonicalhash-production.up.railway.app/v1/canonicalize

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. Includes an EIP-712 signed attestation. Use when an agent needs an idempotency key, cache key, dedup hash, or verifiable commitment. $0.002 per call. Free verification at POST /v1/verify.

BaseDown
POSThttps://canonicalhash-production.up.railway.app/v1/canonicalize

Uptime0.0% of 4 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://canonicalhash-production.up.railway.app/v1/canonicalize", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"payload":{"note":"example","amount":1.5,"user_id":42},"algorithm":"sha256"}),
});
console.log(await res.json());

Example input

{
  "payload": {
    "note": "example",
    "amount": 1.5,
    "user_id": 42
  },
  "algorithm": "sha256"
}

More from canonicalhashProvider status