{"uid":"cap_zlTPzST6wga1hZ5yppKOA","slug":"bitcoin-hash160-ripemd-160-of-sha-256-bec19672","name":"Bitcoin HASH160 (RIPEMD-160 of SHA-256)","description":"Bitcoin HASH160 — RIPEMD-160 of SHA-256 — Genesis402 / UnyKorn Operator Network","url":"https://twin.unykorn.org/hash-hash160?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-hash160","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_lZJkNNV3LfIXetukQOxzB","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 Bitcoin HASH160 hash of an input — applies SHA-256 then RIPEMD-160 — accepting either a hex-encoded byte string or raw text.","exampleAgentPrompt":"Compute the Bitcoin HASH160 of this compressed public key hex: 0x0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","exampleUseCases":[{"title":"P2PKH Bitcoin address derivation","prompt":"I have a compressed public key in hex — 0x0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 — can you compute its HASH160 so I can build the P2PKH Bitcoin address?"},{"title":"Verify script hash in transaction","prompt":"Can you compute the Bitcoin HASH160 of this redeem script hex 0x5221...ae52 so I can verify it matches the scriptHash in the transaction output I'm auditing?"},{"title":"Hash a custom message for Bitcoin signing","prompt":"Apply Bitcoin's HASH160 function — SHA-256 then RIPEMD-160 — to the text 'Hello Bitcoin' and give me the resulting digest."}],"resultDescription":"Returns a JSON object with ok=true, the hash type identifier ('hash-hash160'), the HASH160 digest (20-byte RIPEMD-160 output of the SHA-256 of the input), a generation timestamp, and a payment receipt including the transaction hash, USD amount, and receipt ID.","failureModes":["Invalid hex prefix: input hex must start with 0x or request will be rejected","Input text exceeds 49152 character limit causing a validation error","Malformed hex string (odd length or non-hex characters) resulting in a parse error","Missing both hex and text fields returns an error","Payment failure on x402 protocol causes 402 response before processing begins"],"whenToPreferThis":"Use this endpoint when you need to compute Bitcoin's HASH160 (RIPEMD-160(SHA-256(x))) specifically — the standard hash used for P2PKH and P2SH Bitcoin addresses and script hashes. Prefer this over generic SHA-256 or RIPEMD-160 endpoints when working in a Bitcoin context, and over local computation when you need a verifiable, receipted, pay-per-use API call in an agentic workflow. It accepts both raw hex bytes and text, making it flexible for both public key hashing and arbitrary data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T18:55:35.697Z","isFirstParty":false,"canonicalSlug":"bitcoin-hash160-ripemd-160-of-sha-256-bec19672"}