createSMAV2Account
Creates an SMAV2 account using defined parameters including chain, signer, salt, factory address, and more. Handles account initialization code, nonce generation, transaction encoding, and more to construct a modular account with optional validation hooks.
Import
import { createSMAV2Account } from "@account-kit/smart-contracts";
Parameters
config
CreateSMAV2AccountParams
Configuration parameters for creating an SMAV2 account. Includes chain details, signer, salt, factory address, and more.
Returns
Promise<MAV2Account>
A promise that resolves to an MAV2Account
providing methods for nonce retrieval, transaction execution, and more.