{"uid":"cap_h9cODx5SLgD1KWTbVp22L","slug":"x402-hash-api-sha-256-7f066d6b","name":"x402 Hash API – SHA-256","description":"Pay-per-call hashing and encoding for AI agents (USDC on Base)","url":"https://x402-hash-api.vercel.app/sha256?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"data":{"type":"string","description":"payload to hash"},"encoding":{"type":"string","description":"utf8 | hex | base64"}}},"responseSchema":{"type":"json","example":{"digest":"...","algorithm":"sha256"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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_v8YMW5DdF1aWv8Ug-GuFu","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":"Computes a SHA-256 cryptographic hash of a given string payload, returning the hex digest, via a pay-per-call API using USDC on Base","exampleAgentPrompt":"Hash the string 'hello world' using SHA-256 with UTF-8 encoding and give me the hex digest.","exampleUseCases":[{"title":"Verify document integrity before storage","prompt":"Hash this contract text using SHA-256 with UTF-8 encoding so I can store the digest alongside the document and verify it hasn't changed later."},{"title":"Generate fingerprint for deduplication","prompt":"I need a SHA-256 fingerprint of this base64-encoded image blob so I can check for duplicates in my database — can you hash it?"},{"title":"Produce checksum for API payload signing","prompt":"Compute the SHA-256 hash of this JSON string using hex encoding so I can use it as a checksum when signing my API request payload."}],"resultDescription":"A JSON object containing a 'digest' field (the hex-encoded SHA-256 hash of the input) and an 'algorithm' field confirming 'sha256'. The digest can be used directly for integrity checking, deduplication, or signing workflows.","failureModes":["Missing 'data' field in request body returns an error","Invalid encoding value (not utf8/hex/base64) may cause encoding errors or unexpected output","Payment failure via x402 protocol (insufficient USDC balance or network issues on Base) prevents request from completing","Very large payloads may be rejected or time out depending on server limits"],"whenToPreferThis":"Choose this endpoint when you need a quick, deterministic SHA-256 hash of a string and are operating in an x402 micropayment-enabled agent workflow on Base. It is ideal when you cannot or do not want to run local crypto libraries, when you need a trustless third-party hash computation, or when your agent stack is already wired for x402 pay-per-call patterns. Prefer local crypto libraries for high-volume or latency-sensitive use cases.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T12:40:58.016Z","isFirstParty":false,"canonicalSlug":"x402-hash-api-sha-256-7f066d6b"}