Account Abstraction
SDK
Signature
Get Sign Message Hash

Get Sign Message Hash

Overview

This SDK method allows you to generate a hash for a message that can be signed by a smart account. This is useful for verifying the integrity and authenticity of messages.

Method

xellar.accountAbstraction.signature.getSignMessageHash({
  accountId: string,
  message: string,
});

Parameters

  • accountId (required): The unique identifier of the smart account.
  • message (required): The message to be hashed.

Response

The response will include a JSON object with the following properties:

  • status (number): The HTTP status code of the response (e.g., 200 for success).
  • message (string): A message indicating the result of the operation.
  • data (object): An object containing the hash of the message.

Example Response

{
  "status": 200,
  "message": "success get hash",
  "data": {
    "hash": "0xdc6aa1aa485ce299c85fac982630d670c85a688ee70760c402a94417fe28e1bd"
  }
}