{"uid":"cap_OVITbB5n_M0v0E5shtMe6","slug":"proofwork-x402-encoding-tools-api-25a54115","name":"Proofwork x402 Encoding Tools API","description":"Small non-cyber evidence and data APIs payable per request with x402 on Base.","url":"https://proofwork-the402-webhook.phase-voice.workers.dev/v1/encoding-tools","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["operation","value"],"properties":{"value":{"type":"string","maxLength":12000,"minLength":0},"operation":{"enum":["sha256","sha512","base64_encode","base64_decode"],"type":"string"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"output":"2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824","report":"encoding_tools","encoding":"hex","operation":"sha256","input_bytes":5,"content_type":"text/plain","output_bytes":64}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Ryf8_EV3CYKTXta8gc7ln","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs cryptographic hashing (SHA-256, SHA-512) and Base64 encoding/decoding on arbitrary string input, payable per-request via x402 on Base.","exampleAgentPrompt":"Can you compute the SHA-256 hash of the string 'hello'?","exampleUseCases":[{"title":"Verify document fingerprint via SHA-256","prompt":"Hash this contract text with SHA-256 so I can compare its fingerprint against the one stored on-chain: 'This agreement is entered into on January 1, 2025...'"},{"title":"Base64-encode credentials for an API header","prompt":"Can you base64 encode this string so I can use it in an Authorization header? The value is 'myUsername:mySecretPassword123'"},{"title":"Decode a base64 payload from a webhook","prompt":"I just received a base64-encoded webhook body and need to see the original text — can you decode this for me: 'eyJldmVudCI6InBheW1lbnQiLCJhbW91bnQiOjEwMH0='"}],"resultDescription":"Returns a JSON object containing the computed output string (hex-encoded for hashes, string for base64 operations), the operation name, input and output byte counts, encoding format used, content type, and a report label ('encoding_tools').","failureModes":["Missing required 'value' query parameter returns an error","Missing required 'operation' parameter returns an error","Invalid operation enum value (not sha256/sha512/base64_encode/base64_decode) returns an error","Input exceeding 12000 character limit is rejected","Payment failure via x402 (insufficient USDC balance) blocks the request","Empty string input (0 bytes) may return trivial/empty output"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-use cryptographic hashing or base64 encoding/decoding utility without setting up server infrastructure. It is particularly useful in agent workflows where you need on-demand, trustless data transformation billed in USDC via x402 on Base, and when you want a simple auditable evidence trail (report metadata) alongside the encoding result.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:41:17.878Z","isFirstParty":false}