nativeSMASigner
Creates an object with methods for generating a dummy signature, signing user operation hashes, signing messages, and signing typed data.
Import
import { nativeSMASigner } from "@account-kit/smart-contracts";
Usage
import { nativeSMASigner } from "@account-kit/smart-contracts";
import { LocalAccountSigner } from "@aa-sdk/core";
const MNEMONIC = "...":
const account = createSMAV2Account({ config });
const signer = LocalAccountSigner.mnemonicToAccountSigner(MNEMONIC);
const messageSigner = nativeSMASigner(signer, chain, account.address);
Parameters
signer
SmartAccountSigner
Signer to use for signing operations
chain
Chain
Chain object for the signer
accountAddress
Address
address of the smart account using this signer
Returns
object
an object with methods for signing operations and managing signatures