{"uid":"cap_fYoz8Yki4PARnRk67fwCd","slug":"penny-api-hash-endpoint-4aba9a1a","name":"Penny API – Hash Endpoint","description":"Pay-per-call tools for agents (x402, 0.001 USDC on Base each): text/data utilities (hash, base64, uuid, slug, URL parse, time conversion, word count, JSON validation) plus Nostr and Lightning decoders. Run by Penny.","url":"https://pennyagent.pythonanywhere.com/paid/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"}}},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"alg":"sha256","hex":"2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824"}},"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_VyoZsQKCygfZl2BoG-C9S","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 cryptographic hash (SHA-256) of a given input string, returning the hex digest, via a pay-per-call x402 micropayment model.","exampleAgentPrompt":"Can you hash the string 'hello' using SHA-256 and give me the hex digest?","exampleUseCases":[{"title":"Data integrity fingerprint check","prompt":"Hash this string 'user:alice:2024-06-01' with SHA-256 so I can compare it against a stored checksum to verify nothing changed."},{"title":"Password pre-hashing before storage","prompt":"Take the plaintext value 'MyS3cr3tP@ss' and compute its SHA-256 hex hash so I can store a fingerprint instead of the raw password."},{"title":"Webhook signature verification","prompt":"I received a webhook payload body 'amount=100&currency=usd' — hash it with SHA-256 so I can compare it to the HMAC signature the sender gave me."}],"resultDescription":"Returns a JSON object with two fields: 'alg' (the hash algorithm used, e.g. 'sha256') and 'hex' (the hexadecimal string representation of the computed hash digest).","failureModes":["Missing 'input' query parameter returns an error or empty response","Unsupported algorithm type may return an error","x402 payment not completed or insufficient USDC balance blocks the request with a 402 response","Server downtime on PythonAnywhere free tier may cause intermittent 503 errors"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call SHA-256 hash of a string without setting up your own crypto library, especially in agent workflows that already use x402 micropayments on Base. It is ideal for lightweight, one-off hashing tasks in agentic pipelines where adding a crypto dependency is undesirable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:35:37.354Z","isFirstParty":false,"canonicalSlug":"penny-api-hash-endpoint-4aba9a1a"}