a generic smart account SDK that can be used to interact with erc4337 smart account v3 and later. Developed with viem.sh to minimize the package
✅️one-click to create a modular smart account
✅️batch modular smart account creation
✅️only focus on the calldata logic, will do everything for you to set the gas price, nonce, etc.
✅local calculation instead of on chain querying
yarn
// first convert the client to the validator
const owner = new walletClientSigner(walletClient, "SUDO");
// now convert the client to the smart account
const smartAccount = new ERC4337SmartContractAccount({
publicClient: publicClient,
owner: owner,
});
feel free to use this smartAccount class