{"uid":"cap_0C8QaobwJP3BZtVkYNVPN","slug":"canonicalhash-batch-canonicalize-cde69130","name":"CanonicalHash Batch Canonicalize","description":"Deterministic JSON hashing and structured extraction for AI agents. Three paid routes: /v1/canonicalize (RFC 8785 canonicalization + SHA-256/512 + EIP-712 attestation, $0.002), /v1/canonicalize/batch (up to 1000 payloads, $0.01), /v1/structure/paid (structured JSON extraction from messy text, $0.005). Every successful response includes an EIP-712 signed attestation verifiable against /.well-known/pubkey.json. Verify any attestation for free at POST /v1/verify.","url":"https://canonicalhash-production.up.railway.app/v1/canonicalize/batch?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"payloads":{"type":"array","items":{},"maxItems":1000,"minItems":1,"description":"Up to 1000 JSON values to canonicalize."},"algorithm":{"enum":["sha256","sha512"],"type":"string","description":"Hash algorithm. Default: sha256."}}},"responseSchema":{"type":"json","example":{"spec":"RFC 8785","count":2,"signer":"0x0326f9783c9C9b9De8b9dC63cCCefDC75A95C7cD","results":[{"hash":"60196f74f027a2b2a0c2eb1143dd6cc1a2319c87479a846ed0d140e4bc2403e7","canonical":"{\"amount\":1.5,\"note\":\"example\",\"user_id\":42}"},{"hash":"a3f0b9c8...truncated","canonical":"{\"amount\":2,\"note\":\"second\",\"user_id\":43}"}],"success":true,"batch_id":"b_01HXX0EXAMPLE000000000000000","chain_id":8453,"algorithm":"sha256","issued_at":"2026-10-16T00:00:00.000Z","signature":"0x9f2a...truncated","batch_hash":"0xdeadbeef...truncated","attestation_type":"EIP-712"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_flE1cNAJOX_kiebOsludC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Deterministically canonicalizes and SHA-256/512 hashes up to 1000 JSON payloads in a single call, returning an EIP-712 signed attestation for the entire batch","exampleAgentPrompt":"Canonicalize and SHA-256 hash these 3 JSON objects for me all at once so I get a single signed attestation I can use for audit purposes: {\"user_id\":42,\"amount\":1.5,\"note\":\"example\"}, {\"user_id\":43,\"amount\":2,\"note\":\"second\"}, and {\"user_id\":44,\"amount\":3,\"note\":\"third\"}.","exampleUseCases":[{"title":"Audit trail for transaction records","prompt":"I have a batch of 50 transaction JSON objects that need to be hashed and cryptographically attested before we archive them — can you canonicalize all of them with SHA-256 and give me the signed EIP-712 attestation I can store alongside the archive?"},{"title":"Deduplicate JSON event logs","prompt":"I need to detect duplicate events in this list of 200 JSON log entries — can you canonicalize and hash all of them in one go so I can compare the hashes to find duplicates?"},{"title":"Blockchain-ready data fingerprinting","prompt":"Before we post these 10 JSON configuration snapshots on-chain, please generate RFC 8785 canonical hashes for all of them with SHA-512 so we have a verifiable fingerprint for each one."}],"resultDescription":"Returns a JSON object containing: a batch ID, the count of processed payloads, the hash algorithm used, the RFC 8785 canonical form and hash for each input payload, a combined batch hash, an EIP-712 signature from a known signer address, chain ID (Base/8453), and an issued_at timestamp. The attestation is verifiable against the service's published public key.","failureModes":["Payload array exceeds 1000 items — request rejected with validation error","Malformed or non-JSON items in the payloads array — individual items may fail or entire batch rejected","Invalid algorithm value (not sha256 or sha512) — 400 error","Payment not fulfilled (x402 flow incomplete) — 402 Payment Required","Service unavailable on Railway infrastructure — 503 or network timeout","Empty payloads array — 400 validation error"],"whenToPreferThis":"Use this endpoint when you need to hash or canonicalize multiple JSON payloads in a single atomic operation and want a single EIP-712 signed attestation covering the entire batch. It is more cost-efficient than calling the single-payload endpoint repeatedly (batch costs $0.01 vs $0.002 × N for large N > 5). Prefer it when you need a unified batch_hash anchoring all items together, e.g. for audit logs, blockchain anchoring, or deduplication at scale.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T19:04:13.741Z","isFirstParty":false,"canonicalSlug":"canonicalhash-batch-canonicalize-cde69130"}