{"uid":"cap_P09slHQ6v4ZdCnNA-UAuv","slug":"pastable-x402-text-hashing-1f985cca","name":"pastable-x402 Text Hashing","description":"Pay-per-call utility APIs for agents: EVM helpers (checksum, unit conversion, keccak), data transforms (CSV to JSON, JSON diff, URL canonicalisation), text tools (hashing, JWT decode), and Bazaar market intelligence. x402 on Base mainnet.","url":"https://pastable-x402.pages.dev/text/hash","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["data","encoding"],"properties":{"data":{"type":"string","description":"string"},"encoding":{"type":"string","description":"utf8|base64|hex"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object"}}},"responseSchema":{"type":"json","example":{"md5":"5d41402abc4b2a76b9719d911017c592","bytes":5,"sha256":"2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824","sha512":"9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__zvBH5nGKW6qO3dkrLRgH","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Hashes an input string using MD5, SHA-256, and SHA-512 simultaneously, returning all three digests plus byte length.","exampleAgentPrompt":"Can you hash the string 'hello' using UTF-8 encoding and give me the MD5, SHA-256, and SHA-512 digests?","exampleUseCases":[{"title":"Verify downloaded file integrity","prompt":"I have the text content of a file I just downloaded — can you hash it with SHA-256 using UTF-8 encoding so I can compare it against the checksum the server published?"},{"title":"Generate content fingerprint for deduplication","prompt":"Hash this article text in UTF-8 so I can use the SHA-256 digest as a unique fingerprint to detect duplicates in my database."},{"title":"Hash a base64-encoded payload","prompt":"I've got a base64-encoded blob I need to checksum — can you run it through the hashing endpoint with base64 encoding and return me the MD5 and SHA-256?"}],"resultDescription":"Returns a JSON object containing the MD5, SHA-256, and SHA-512 hex-encoded digests of the input string, plus the byte length of the input. All three hash algorithms are computed in a single call.","failureModes":["Missing required query parameters 'data' or 'encoding' returns an error","Invalid encoding value (not utf8, base64, or hex) causes a bad request","Payment not completed via x402/Base mainnet results in 402 Payment Required","Malformed base64 or hex input string causes a processing error","Network timeout on the Cloudflare Pages edge function"],"whenToPreferThis":"Choose this endpoint when you need multiple hash algorithms (MD5, SHA-256, SHA-512) computed simultaneously in a single paid call, saving round-trips compared to separate hashing APIs. Ideal for agents that need to fingerprint, deduplicate, or verify text content and want all common digest formats at once. The x402 micropayment model ($0.02 USDC) makes it suitable for per-operation billing in automated pipelines without subscriptions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:42:37.657Z","isFirstParty":false}