Skip to content

signMessage

This method signs messages using the connected account with ERC-191 standard.

Usage

example.ts
import { smartAccountClient } from "./smartAccountClient";

const signedMessage = await smartAccountClient.signMessage({ message: "msg" });

Returns

Promise<Hash>

The signed hash for the message passed

Parameters

message: SignableMessage

Message to be signed represented as a viem SignableMessage

account?: SmartContractAccount

If your client was not instantiated with an account, then you will have to pass the account in to this call.