{"uid":"cap_skdEyiyBf9DaYV3NAietQ","slug":"hash-digest-54bf16a2","name":"Hash Digest","description":"Compute cryptographic digests of a string. POST {\"input\":\"...\",\"algorithms\":[\"sha256\"]} and receive one hex digest per requested algorithm. Supports sha256, sha512 and keccak256. Deterministic, no storage, no upstream calls.","url":"https://x402-echo-service.onrender.com/hash","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","maxLength":65536,"minLength":1},"algorithms":{"type":"array","items":{"enum":["sha256","sha512","keccak256"]}}}},"responseSchema":null,"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_IfTwThgAU3VZ_jtX_4NFk","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":"Compute cryptographic hash digests (SHA-256, SHA-512, or Keccak-256) of an input string and return hex-encoded results.","exampleAgentPrompt":"Hash the string 'hello world' using both sha256 and keccak256 and give me the hex digests.","exampleUseCases":[{"title":"Verify Ethereum message hash","prompt":"Compute the keccak256 hash of the string 'Transfer 1 ETH to 0xABCD' so I can verify it matches what the contract is expecting."},{"title":"Fingerprint data for deduplication","prompt":"Hash this JSON payload with sha256 so I can use it as a unique fingerprint to detect duplicates: '{\"user\":42,\"action\":\"login\"}'."},{"title":"Cross-algorithm digest comparison","prompt":"Run 'my secret passphrase' through sha256, sha512, and keccak256 all at once and show me all three hex digests side by side."}],"resultDescription":"Returns an object mapping each requested algorithm name to its hex-encoded digest of the input string. For example: {\"sha256\": \"b94d27b9...\", \"keccak256\": \"4e03657a...\"}. Results are deterministic and purely computed — no state is stored and no external calls are made.","failureModes":["Empty or missing input string returns a validation error","Unsupported algorithm name (anything other than sha256, sha512, keccak256) returns an error","Input exceeding 65536 characters is rejected","Malformed JSON body returns a 400 error","Service unavailability on Render cold-start may cause occasional timeouts"],"whenToPreferThis":"Choose this endpoint when you need a quick, deterministic cryptographic hash of a string without setting up local crypto libraries — especially useful in agent pipelines where you need keccak256 (Ethereum-compatible hashing) alongside standard SHA algorithms. Ideal for verifying data integrity, generating content fingerprints, or producing Ethereum-compatible hashes in a serverless context. Prefer this over local computation when operating in environments where native crypto is unavailable or for multi-algorithm comparisons in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:32:03.574Z","isFirstParty":false}