hash
keccak256 / sha256 of text or hex — the most-bought x402 utility — Compute keccak256 (the EVM/Solidity hash — event topics, function selectors, mapping keys) or sha256 of any input. Pass input=text for UTF-8, or 0x-hex to hash raw bytes; algo=keccak256 (default) or sha256. Returns the digest and, for keccak, the 4-byte function selector. Pure compute, no chain, sub-cent — the commodity hashing call the whole x402 ecosystem hammers, served at the floor. Not financial advice. Required input: input. Priced $0.002 per call over x402 on Base; send a prepaid x-credit-token header for unlimited calls, or get 1 free call/day per tool. No API key required.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"input": "<input>"
},
"name": "hash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| algo | No | keccak256 (default) or sha256 | |
| input | Yes | Text or 0x-hex to hash |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | The result payload. Shape is service-specific; every field is documented in the tool description. | |
| service | No | The service id that answered. | |
| checkedAt | No | ISO-8601 timestamp of when the underlying reads were taken. |