{"uid":"cap_2JesSaZeiSeOgFwd-o7tw","slug":"crypto-hash-blockchain-identifier-computation-api-f944c933","name":"Crypto Hash & Blockchain Identifier Computation API","description":"Compute keccak256/sha256, a 4-byte function selector, an event topic0, or an ENS namehash/labelhash from a string or hex input.","url":"https://api.agentstools.dev/crypto/hash","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":["algo","input"],"properties":{"algo":{"enum":["keccak256","sha256","selector","event_topic","namehash","labelhash"],"type":"string"},"input":{"type":"string","description":"String / signature / ENS name / 0x-hex"},"encoding":{"enum":["utf8","hex"],"type":"string","description":"How to read `input` for keccak256/sha256 (default utf8)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_znaHuqeW8JSQXoquR3S_Y","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 keccak256, sha256, Ethereum function selectors, event topic0, ENS namehash, or ENS labelhash from a string or hex input.","exampleAgentPrompt":"What's the keccak256 hash of the UTF-8 string 'hello world', and also give me the 4-byte function selector for the Solidity signature 'transfer(address,uint256)'?","exampleUseCases":null,"resultDescription":"Returns the computed hash or identifier as a hex string — e.g. the 32-byte keccak256 digest, 4-byte function selector, 32-byte event topic0, or 32-byte ENS namehash/labelhash — depending on the chosen algorithm.","failureModes":["Missing required 'algo' or 'input' query params returns a 400 error","Invalid algorithm name not in the supported enum returns an error","Providing a malformed hex string when encoding=hex may return a parse error","Payment not included or insufficient results in a 402 Payment Required response","Unsupported encoding value returns a validation error"],"whenToPreferThis":"Use this endpoint when you need deterministic blockchain-specific hashes — especially Ethereum keccak256, Solidity function selectors, event topic0 hashes, or ENS name resolution identifiers — without running a local Ethereum library. Prefer it over generic hash APIs when ENS namehash/labelhash or EVM ABI-encoding-aware selector computation is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:54:30.515Z","isFirstParty":false}