{"uid":"cap_d-gJlITgUPIU6-D_rNm5S","slug":"payai-crypto-hash-utility-fc60b6fe","name":"PayAI Crypto Hash Utility","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://payai.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_kFf28wWuUxWr5gL0js4o2","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 cryptographic hashes and Ethereum-specific derived values (keccak256, sha256, 4-byte function selector, event topic0, ENS namehash/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 ABI function selector for 'transfer(address,uint256)'?","exampleUseCases":[{"title":"Verify smart contract function calls","prompt":"I need to check if a transaction is calling the transfer function on an ERC-20 contract. Can you compute the 4-byte selector for 'transfer(address,uint256)' so I can match it against the transaction data?"},{"title":"Set up ENS domain resolver","prompt":"I'm configuring an ENS resolver for 'myapp.eth' and need the namehash value to register it on-chain. What's the ENS namehash for 'myapp.eth'?"},{"title":"Monitor EVM event emissions","prompt":"I want to filter logs for Transfer events from a token contract. What's the event topic0 hash for the Solidity signature 'Transfer(address,address,uint256)'?"}],"resultDescription":"Returns a hex-encoded hash or derived value corresponding to the requested algorithm — e.g. a 32-byte keccak256 digest, a 4-byte function selector, a 32-byte event topic0, or the ENS namehash/labelhash for the given input string.","failureModes":["Missing required 'algo' or 'input' query parameters — returns 400 Bad Request","Invalid algo enum value — returns 400 with validation error","Malformed 0x-hex input when encoding=hex is specified — returns 400 or incorrect result","Input string too long or malformed for the selected algorithm — may return 400 or 500","Payment not provided or insufficient — returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when an AI agent needs to compute Ethereum-ecosystem cryptographic primitives — especially ENS namehash/labelhash or Solidity ABI selectors — without running local code. Prefer it over generic hash libraries when the agent needs selector or event topic0 derivation from human-readable Solidity signatures, or ENS name resolution primitives.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:09:44.432Z","isFirstParty":false}