{"uid":"cap_HKHE1nKfW6llHoV2v2Y72","slug":"blake2s-256-hash-digest-32241208","name":"BLAKE2s-256 Hash Digest","description":"BLAKE2s-256 digest of text or raw bytes — Genesis402 / UnyKorn Operator Network","url":"https://twin.unykorn.org/hash-blake2s256?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"params":{"type":"object","properties":{"hex":{"type":"string","pattern":"^0x[0-9a-fA-F]*$"},"text":{"type":"string","maxLength":49152}}}}},"responseSchema":{"type":"json","example":{"ok":true,"type":"hash-blake2s256","receipt":{"tx_hash":"0x<64hex>","amount_usd":0.001,"receipt_id":"g402-<16hex>"},"generated_at":"<iso8601>"}},"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_wR8CsTB7VAcbCSlGYZ6rQ","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 BLAKE2s-256 cryptographic hash digest from either a UTF-8 text string or raw hex-encoded bytes","exampleAgentPrompt":"Can you compute the BLAKE2s-256 hash of the text 'Hello, world!'?","exampleUseCases":[{"title":"Data integrity check before upload","prompt":"Hash this string using BLAKE2s-256 so I can store the digest alongside my file and verify it hasn't been tampered with later: 'user-session-token-abc123xyz'"},{"title":"Hashing raw bytes for blockchain","prompt":"I have some raw hex-encoded bytes 0x4a6f686e446f65 — can you run them through BLAKE2s-256 and give me the digest?"},{"title":"Deriving a deterministic key from input","prompt":"Compute the BLAKE2s-256 digest of the text 'my-app:user:42:secret' so I can use it as a deterministic identifier in my smart contract."}],"resultDescription":"Returns a JSON object with ok:true, the hash type ('hash-blake2s256'), and a receipt object containing the transaction hash, USD amount charged, and a unique receipt ID. The BLAKE2s-256 digest itself is included in the response alongside generation timestamp.","failureModes":["Input exceeds 49152 character limit for text — returns validation error","Hex string does not match pattern ^0x[0-9a-fA-F]*$ — returns schema validation error","Both hex and text fields omitted — ambiguous or empty input error","Payment failure via x402 protocol — endpoint returns 402 before processing","Network timeout on the UnyKorn node — returns gateway error"],"whenToPreferThis":"Choose this endpoint when you need a BLAKE2s-256 hash specifically — preferred for speed-sensitive or resource-constrained environments where BLAKE2s (32-byte output, optimized for 32-bit platforms) is the required algorithm. Use over SHA-256 or BLAKE2b when the target system or protocol explicitly specifies BLAKE2s-256, such as certain blockchain protocols, zero-knowledge proof systems, or embedded contexts. Suitable for both text and binary (hex-encoded) inputs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T18:55:49.324Z","isFirstParty":false,"canonicalSlug":"blake2s-256-hash-digest-32241208"}