signMessageWith6492
signMessageWith6492
supports signing messages for deployed smart accounts, as well as undeployed accounts (counterfactual addresses) using ERC-6492.
Usage
example.ts
import { smartAccountClient } from "./smartAccountClient";
// sign message (works for undeployed and deployed accounts)
const signedMessageWith6492 = smartAccountClient.signMessageWith6492({
message: "test",
});
Returns
Promise<Hash>
A Promise
containing the signature of the message, additionally wrapped in EIP-6492 format if the account is undeployed.