Catalog/evm-message-hash

EVM

EIP-191 personal_sign message hash API

Compute the EIP-191 personal_sign digest keccak256("\x19Ethereum Signed Message:\n" + len + message) that a wallet signs, via viem's hashMessage. Answers 'What hash does a wallet sign for this message?','What is the personal_sign digest of these bytes?'.

Price$0.01per request
MethodPOST
Route/v1/evm/message-hash
StatusLive
MIME typeapplication/json
Rate limit60/minute
CacheNo cache
evmeip191personal-signmessagehashkeccaksignature
API URLhttps://x402.hexl.dev/v1/evm/message-hash
Integration docs
Example request
{
  "message": "hello world"
}
Example response
{
  "message": "hello world",
  "encoding": "utf8",
  "hash": "0xd9eba16ed0ecae432b71fe008c98cc872bb4cc214d3220a36f365326cf807d68"
}
Input schema
{
  "type": "object",
  "required": [
    "message"
  ],
  "properties": {
    "message": {
      "type": "string",
      "examples": [
        "hello world",
        "0xdeadbeef"
      ]
    },
    "encoding": {
      "type": "string",
      "enum": [
        "utf8",
        "hex"
      ],
      "description": "Treat message as raw hex bytes or utf8 text."
    }
  },
  "examples": [
    {
      "message": "hello world"
    }
  ]
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}