{"uid":"cap_IzIUxwFJ20JNH3nHHcj5K","slug":"sha-256-and-keccak-256-hash-calculator-cc08ec60","name":"SHA-256 and Keccak-256 Hash Calculator","description":"Pay-per-call x402 APIs for AI agents: OpenAI-compatible LLM chat, perp funding and arbitrage spreads, crypto prices, gas, FX, Solana SPL mint audit, token price by contract, x402 delivery-receipt verification, web search, clean page extraction, batch tools and deterministic code-security scanning. USDC on Base or Solana, no signup, no API key, from $0.0001 a call.","url":"https://scanpay-edge.alextaghiashvili.workers.dev/api/v1/hash?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"hex":{"type":"string","description":"Hex string (0x-prefixed or raw)"},"text":{"type":"string","description":"Text string to hash"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"bytes":5,"sha256":"2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824","product":"scanpay.hash","keccak256":"1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8"}},"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_KAtnfahC_BquU-tNlpU04","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 SHA-256 and Keccak-256 cryptographic hashes of a given text string or hex-encoded data in a single call.","exampleAgentPrompt":"Hash the text 'hello' and give me both its SHA-256 and Keccak-256 digests.","exampleUseCases":[{"title":"Verify smart contract input data","prompt":"I need the Keccak-256 hash of the hex string 0xdeadbeef — that's what I want to submit to the smart contract. Can you compute it for me?"},{"title":"Integrity check for a message","prompt":"Compute the SHA-256 hash of the text 'The quick brown fox jumps over the lazy dog' so I can compare it against the expected checksum."},{"title":"Blockchain address derivation helper","prompt":"I'm building a wallet tool and need both the SHA-256 and Keccak-256 hashes of the raw public key bytes 0x04a1b2c3d4e5f6 — can you run that through the hash endpoint?"}],"resultDescription":"Returns a JSON object containing the SHA-256 hex digest, the Keccak-256 hex digest, and the byte length of the input, along with a product identifier ('scanpay.hash').","failureModes":["Missing 'text' or 'hex' query parameter — endpoint requires at least one input","Invalid hex string (not 0x-prefixed or malformed) — likely returns an error or unexpected result","Empty string input — may return hash of empty bytes rather than an error","Payment failure (x402) — if USDC payment of $0.001 is not provided, request will be rejected with 402"],"whenToPreferThis":"Choose this endpoint when you need both SHA-256 and Keccak-256 hashes in a single API call, especially for blockchain/Web3 workflows where Keccak-256 (Ethereum-compatible) is required alongside the standard SHA-256. Prefer it over generic hashing libraries when running inside an agent environment that uses x402 micropayment rails and you want a hosted, stateless computation with no dependencies.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T18:33:01.660Z","isFirstParty":false,"canonicalSlug":"sha-256-and-keccak-256-hash-calculator-cc08ec60"}