function signMessage(client, signer, params): Promise<`0x${string}`>;Defined in: account-kit/wallet-client/src/client/actions/signMessage.ts:31
Signs a message using the smart account. This method requests the account associated with the signer and uses it to sign the message.
// Sign a simple text message
const signature = await client.signMessage("Hello, world!");
// Sign a raw hex message
const signature = await client.signMessage({
raw: "0x48656c6c6f2c20776f726c6421",
});| Parameter | Type | Description |
|---|---|---|
|
| The wallet API client to use for the request |
|
| The signer of the smart account |
| Parameters for signing the message |
Promise<`0x${string}`>
A Promise that resolves to the signed message as a hex string