{"uid":"cap_3rrCzTxwqD6TARipxCUjE","slug":"keccak-256-hash-api-fd6da670","name":"Keccak-256 Hash API","description":"Need a function selector or an event topic? Returns the Keccak-256 hash of a text string, in 0x hex ($0.001 per call).","url":"https://api.api-agent-ia.ch/hash-keccak?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["text"],"properties":{"text":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"hash":"0xa9059cbb2ab09eb219583f4a59a5d0623ade346d962bcd4e46b11da047c9049b","text":"transfer(address,uint256)"}},"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_iLpRHmoeuwWXHsKkv3tOo","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":"Computes the Keccak-256 cryptographic hash of a given text string and returns the hex-encoded digest","exampleAgentPrompt":"Can you compute the Keccak-256 hash of the text 'hello world'?","exampleUseCases":[{"title":"Smart contract input verification","prompt":"I need the Keccak-256 hash of the string 'Transfer(address,address,uint256)' so I can use it as the event signature topic in my Ethereum smart contract."},{"title":"Deterministic identifier generation","prompt":"Hash the text 'user:42:session:2024' with Keccak-256 so I can use it as a deterministic, fixed-length identifier in my dApp."},{"title":"Off-chain message signing prep","prompt":"Give me the Keccak-256 hash of 'I agree to the terms of service v2' — I need it before signing the message with a private key."}],"resultDescription":"A JSON object containing the original input text and its Keccak-256 hash as a 0x-prefixed hex string (e.g. {\"hash\": \"0x1c8aff...\", \"text\": \"hello\"}).","failureModes":["Missing required 'text' query parameter returns an error response","Empty string input may return a valid hash of the empty string (not an error)","Very long text strings may be rejected or truncated","Network errors or service downtime return non-200 status codes","Invalid UTF-8 or special characters in text may cause unexpected results"],"whenToPreferThis":"Choose this endpoint when you need an Ethereum/Solidity-compatible Keccak-256 hash (not SHA-3) of a text string — particularly useful for generating EVM event signatures, function selectors, or verifiable digests in web3 workflows. It is a simple, pay-per-call API requiring no setup, ideal for agents that need one-off hashing without integrating a cryptographic library.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-26T06:43:43.587Z","isFirstParty":false,"canonicalSlug":"keccak-256-hash-api-fd6da670"}