EVM
keccak256 of hex or utf8 data API
Compute the keccak256 hash of a UTF-8 string or 0x-hex bytes (the EVM's hash for selectors, storage slots, and commitments), via viem's keccak256. Answers 'What is keccak256("hello")?','What is the hash of these bytes?'.
Price$0.01per request
MethodPOST
Route/v1/evm/keccak
StatusLive
MIME typeapplication/json
Rate limit60/minute
CacheNo cache
evmkeccakkeccak256hashsha3hexutf8
API URL
Integration docshttps://x402.hexl.dev/v1/evm/keccakExample request
{
"data": "hello"
}Example response
{
"input": "hello",
"encoding": "utf8",
"keccak256": "0x1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8"
}Input schema
{
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "string",
"examples": [
"hello",
"0x1234"
]
},
"encoding": {
"type": "string",
"enum": [
"utf8",
"hex"
],
"description": "Defaults to hex if data is 0x-prefixed, else utf8."
}
},
"examples": [
{
"data": "hello"
},
{
"data": "0x1234",
"encoding": "hex"
}
]
}Output schema
{
"type": "object",
"additionalProperties": true
}