{"uid":"cap_C3EdrlkN4iMZio6wEH1tZ","slug":"canonicalhash-receipt-eip-712-signed-json-action-receipt-ff1e29ba","name":"CanonicalHash Receipt — EIP-712 Signed JSON Action Receipt","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/receipt?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"action":{"description":"Any JSON object describing the action."},"occurred_at":{"type":"integer","description":"Unix seconds. Optional. Defaults to server time."}}},"responseSchema":{"type":"json","example":{"spec":"RFC 8785","scheme":"EIP-712","signer":"0x0326f9783c9C9b9De8b9dC63cCCefDC75A95C7cD","success":true,"algorithm":"sha256","canonical":"{\"action\":{\"type\":\"llm.completion\"},\"occurred_at\":1792185673}","issued_at":"2026-10-17T00:00:01.000Z","signature":"0x7a1c...truncated","verify_at":"https://canonicalhash-production.up.railway.app/v1/verify","receipt_id":"rc_a4f2c8b1e3d9f0a1b2c3d4e5","occurred_at":"2026-10-17T00:00:00.000Z","receipt_hash":"a4f2c8b1e3d9f0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b","issued_at_unix":1792185674,"occurred_at_unix":1792185673}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_h7p7qcD81Tlzgy1TRPQwl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Creates a deterministic, EIP-712 signed receipt for any JSON action object, producing a canonical hash and cryptographic attestation for audit and provenance purposes.","exampleAgentPrompt":"Create a signed receipt for this action — {\"type\": \"llm.completion\", \"model\": \"gpt-4o\", \"tokens\": 512} — and give me the canonical hash and EIP-712 signature so I can store it as proof it happened.","exampleUseCases":[{"title":"Audit trail for agent LLM calls","prompt":"Every time my agent makes an LLM completion, I want a signed receipt with a canonical hash and EIP-712 attestation — stamp this action object {\"type\":\"llm.completion\",\"model\":\"claude-3-5\",\"prompt_tokens\":800} with a receipt I can store for compliance."},{"title":"Timestamped proof of data delivery","prompt":"I just delivered a report to a client and need tamper-proof evidence it happened — create a signed CanonicalHash receipt for this action {\"type\":\"report.delivered\",\"client_id\":\"acme-corp\",\"report\":\"Q2-2025\"} with occurred_at set to right now."},{"title":"Provenance record for automated workflow step","prompt":"My automation just completed a payment approval step and I need a verifiable record — generate an EIP-712 signed receipt for {\"type\":\"payment.approved\",\"amount\":1500,\"currency\":\"USD\",\"approver\":\"agent-7\"} so I can prove the action occurred."}],"resultDescription":"Returns a JSON object containing: the RFC 8785 canonical string of the input, a SHA-256 hash of that canonical form (receipt_hash), a unique receipt_id, an EIP-712 signature from the known signer address, timestamps (issued_at, occurred_at) in both ISO and Unix formats, and a verify_at URL for independent verification — all confirming the action was hashed and signed at a specific moment.","failureModes":["Malformed or non-serializable action object returns 400 Bad Request","Invalid occurred_at (non-integer or future date beyond tolerance) returns 422","Payment not included or insufficient USDC returns 402 Payment Required","Signer service unavailable causes 503 with no attestation produced","Oversized action payload may be rejected with 413"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, per-action cryptographic receipt — a single JSON event hashed, timestamped, and EIP-712 signed for $0.001 USDC. Prefer it over /v1/canonicalize when your goal is audit provenance and a unique receipt_id rather than pure hash computation, and over /v1/canonicalize/batch when you have a single action to stamp in real time rather than a bulk job.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T06:33:54.142Z","isFirstParty":false,"canonicalSlug":"canonicalhash-receipt-eip-712-signed-json-action-receipt-ff1e29ba"}