{"uid":"cap_eWfCmEHmn8UA5lnH9xWLF","slug":"x-pay-keccak256-hash-5df4ccd4","name":"X Pay Keccak256 Hash","description":"Pay-per-request utility APIs powered by x402 using USDC on Base.","url":"https://www.api-xpay.com/x402/keccak?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object"},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"queryParams":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"hash":"0x1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8","asset":"USDC","network":"base","success":true,"algorithm":"keccak256"}},"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_bj0FsALw-JsV12dT_UWVT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a Keccak-256 cryptographic hash of provided input data, payable per-request via USDC on Base using x402.","exampleAgentPrompt":"Hash the string 'Hello, World!' using keccak256 — I need the hex digest for a smart contract verification check.","exampleUseCases":[{"title":"Smart contract event topic hashing","prompt":"Compute the keccak256 hash of 'Transfer(address,address,uint256)' so I can use it as the event topic signature in my Ethereum contract."},{"title":"Data integrity verification for blockchain","prompt":"I need to keccak256 hash this JSON object before storing its fingerprint on-chain — can you run it through the hasher and give me the hex result?"},{"title":"Solidity abi.encodePacked pre-hash","prompt":"Hash the value 'approve(address,uint256)' with keccak256 so I can match the function selector in my Solidity code."}],"resultDescription":"Returns a JSON object containing the keccak256 hex hash string (prefixed with 0x), a success boolean, the algorithm name ('keccak256'), the payment asset ('USDC'), and the network ('base').","failureModes":["Missing required 'input' body field returns validation error","Invalid bodyType enum value causes request rejection","Insufficient USDC payment via x402 results in 402 Payment Required response","Malformed JSON body returns parse error","Network congestion on Base may delay payment confirmation"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-use keccak256 hash with no API key setup, especially for blockchain/Ethereum/Solidity use cases such as event topic generation, function selectors, or on-chain fingerprinting. It is ideal for low-frequency hashing needs where a per-call micropayment model (x402/USDC) is preferred over subscription-based alternatives.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T03:19:49.606Z","isFirstParty":false,"canonicalSlug":"x-pay-keccak256-hash-5df4ccd4"}