{"uid":"cap_k30eiOJp2RrlaNwo24Csc","slug":"sha-1-hash-digest-endpoint-fbda1f25","name":"SHA-1 Hash / Digest Endpoint","description":"SHA-1 digest of text or raw bytes — Genesis402 / UnyKorn Operator Network","url":"https://twin.unykorn.org/hash-sha1?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-sha1","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_aFcinwRosqEkcvviZ8MVc","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 the SHA-1 cryptographic digest of a given text string or raw hex-encoded bytes","exampleAgentPrompt":"Can you compute the SHA-1 hash of the text 'Hello, world!'?","exampleUseCases":[{"title":"Checksum verification for content deduplication","prompt":"I need the SHA-1 digest of the string 'invoice-2024-07-15-acme-corp' so I can use it as a deduplication key in my records system."},{"title":"Hashing raw hex bytes from blockchain calldata","prompt":"Can you run a SHA-1 hash over these raw hex bytes: 0xdeadbeefcafebabe001122334455667788990011?"},{"title":"Generating SHA-1 fingerprint for a configuration blob","prompt":"Hash this config string for me using SHA-1: 'env=production;region=us-east-1;version=3.2.1' — I want to store the fingerprint as a change-detection key."}],"resultDescription":"Returns a JSON object with ok: true, the SHA-1 digest result, a receipt containing the blockchain transaction hash, USD amount charged, and a unique receipt ID, plus a generated_at ISO 8601 timestamp.","failureModes":["Input text exceeds 49152 character limit — returns validation error","Hex string does not match the required 0x-prefixed pattern — returns schema error","Neither text nor hex param provided — likely returns an error or empty digest","Payment failure via x402 protocol — endpoint returns 402 before processing","Network timeout contacting the UnyKorn operator node"],"whenToPreferThis":"Choose this endpoint when you need a fast, paid, on-demand SHA-1 digest of arbitrary text or raw bytes and want an auditable receipt tied to a blockchain payment. It is useful in agentic workflows requiring cryptographic hashing with verifiable billing, especially for EVM-adjacent tooling pipelines already using the UnyKorn operator network.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T18:55:45.840Z","isFirstParty":false,"canonicalSlug":"sha-1-hash-digest-endpoint-fbda1f25"}