What problem does it solve?
Deploying ERC-4337 smart contract wallets requires coordinating factory contracts, CREATE2 salts, EntryPoint versions, and init code, and mistakes like mismatched salts or unfunded counterfactual addresses cause failed deployments.
Core Features & Use Cases
- Counterfactual Address Prediction: Compute a smart account address with CREATE2 before any on-chain deployment using SmartAccountBuilder.
- Upfront or Lazy Deployment: Deploy directly via the factory or embed InitCode in the first UserOperation so the account deploys atomically with its first transaction.
- EntryPoint Deposit Management: Query, add, and withdraw EntryPoint deposits to fund gas for UserOperations.
- Use Case: A .NET backend needs to provision a smart wallet for each new user. It predicts each user's address with a unique salt, shares the address for funding, then lazily deploys the account on the user's first token transfer via AAContractHandler.
Quick Start
Ask the AI to generate C# code that predicts and deploys an ERC-4337 smart account with Nethereum's SmartAccountBuilder given a factory address and owner private key.