{"uid":"cap_EfI5VMICRW1GyICXikJG5","slug":"coinlight-hash-5e1261e0","name":"Coinlight Hash","description":"Coinlight charges USDC per API call with the x402 protocol on Solana and Base.","url":"https://coinlight-app.vercel.app/p/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"},"queryParams":{"type":"object","examples":[{"algo":"sha256","text":"hello"}],"required":["text"],"properties":{"algo":{"enum":["sha256","sha512","sha1","keccak256"],"type":"string","description":"Algorithm. Default sha256."},"text":{"type":"string","description":"Text to hash (UTF-8)."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"endpoint":"Hash text"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Rmxs7C0Tb9ryrmrK9y3tI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Hashes a UTF-8 string using sha256, sha512, sha1, or keccak256 and returns both hex and base64 encoded digests.","exampleAgentPrompt":"Hash the string 'hello world' using sha256 and give me both the hex and base64 outputs.","exampleUseCases":[{"title":"Idempotency key generation for payments","prompt":"I need a sha256 hash of the string 'order-12345-user-67890' to use as an idempotency key — can you get me the hex digest?"},{"title":"Commitment scheme for a secret value","prompt":"Hash the string 'my-secret-bid-250' with keccak256 so I can publish a commitment on-chain before revealing the actual value."},{"title":"Data integrity fingerprint check","prompt":"Compute the sha512 hash of 'The quick brown fox jumps over the lazy dog' and return both the hex and base64 versions so I can compare against my stored checksum."}],"resultDescription":"A JSON response containing the hex-encoded and base64-encoded digest of the input text computed with the specified algorithm (sha256, sha512, sha1, or keccak256). Defaults to sha256 if no algorithm is specified.","failureModes":["Missing required 'text' query parameter returns an error","Invalid algorithm value (not one of sha256, sha512, sha1, keccak256) returns an error","Empty string input may produce a valid hash of empty input","Payment failure (x402) if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need a quick, serverless hash of a UTF-8 string across common algorithms (sha256, sha512, sha1, keccak256) with both hex and base64 output in a single call — especially useful for idempotency keys, on-chain commitments, and integrity checks without setting up local crypto libraries.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T00:30:10.236Z","isFirstParty":false,"canonicalSlug":"coinlight-hash-5e1261e0"}