{"uid":"cap_EEUYk-fqyatuPK3cEHpl-","slug":"sha-256-hash-4d839566","name":"SHA-256 Hash","description":"Use when an agent must prove two payloads are the same byte for byte, or sign an API request: SHA-256 of any string or hex payload, returned as hex and as base64, which are the two forms signatures and content addresses are written in. Do not use for anything Ethereum hashes: the chain uses Keccak-256 (/v1/util/keccak256), which gives a different digest. No API key, no account.","url":"https://flat-rate-llm.kikoribera03.workers.dev/v1/util/sha256?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","required":["input"],"properties":{"input":{"type":"string","description":"Plain text, or a 0x-prefixed hex payload to hash as bytes."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"object","properties":{"hex":{"type":"string"},"base64":{"type":"string"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_M4Ki5ssx8imuA8ADCsS7o","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the SHA-256 hash of any string or hex-encoded byte payload, returning the digest as both hex and base64.","exampleAgentPrompt":"Hash the string 'hello' using SHA-256 and give me both the hex and base64 versions of the digest.","exampleUseCases":[{"title":"API request signature generation","prompt":"I need to sign an API request — can you compute the SHA-256 hash of the string 'timestamp=1700000000&nonce=abc123' so I can include it in the Authorization header?"},{"title":"File integrity checksum","prompt":"Compute the SHA-256 hash of this hex payload 0xdeadbeefcafebabe so I can verify the file hasn't been tampered with."},{"title":"Content addressing for storage","prompt":"I'm storing a document and want to use its SHA-256 hash as its unique content address — can you hash the string 'The quick brown fox jumps over the lazy dog' and give me the hex digest?"}],"resultDescription":"A JSON object containing two fields: 'hex' (the SHA-256 digest as a 0x-prefixed hex string, e.g. 0x2cf24dba...) and 'base64' (the same digest base64-encoded, e.g. LPJNul+w...).","failureModes":["Missing or empty 'input' field returns an error","Malformed 0x-prefixed hex (odd length or non-hex characters) may cause parsing errors","Extremely large payloads may time out or be rejected by the worker","Network errors or worker downtime return 5xx responses"],"whenToPreferThis":"Choose this endpoint when you need SHA-256 specifically (file digests, content addressing, API signature schemes, S3 checksums, JWT verification) rather than Keccak-256 (which is Ethereum's native hash). Use this when you need both hex and base64 output in a single call without running your own hashing library.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-23T06:44:30.848Z","isFirstParty":false,"canonicalSlug":"sha-256-hash-4d839566"}