Catalog/util-hash

Utilities

Hash a string (sha256/keccak256/...) API

Compute a cryptographic hash of a string: sha256, sha512, md5, or keccak256 (the EVM hash). Answers queries like 'sha256 of this', 'keccak256 hash', 'hash this string'.

Price$0.01per request
MethodPOST
Route/v1/util/hash
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
utilhashsha256keccak256md5cryptochecksum
API URLhttps://x402.hexl.dev/v1/util/hash
Integration docs
Example request
{
  "input": "hello",
  "algorithm": "sha256"
}
Example response
{
  "algorithm": "sha256",
  "hash": "0x2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824"
}
Input schema
{
  "type": "object",
  "required": [
    "input",
    "algorithm"
  ],
  "properties": {
    "input": {
      "type": "string"
    },
    "algorithm": {
      "type": "string",
      "enum": [
        "sha256",
        "sha512",
        "md5",
        "keccak256"
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "required": [
    "algorithm",
    "hash"
  ],
  "properties": {
    "algorithm": {
      "type": "string"
    },
    "hash": {
      "type": "string"
    }
  }
}