The toSoladySmartAccount simple Smart Account Implementation that references Solady’s ERC4337.sol Smart Account contract. ::::warning This implementation is unaudited. It is intended to be used for testing purposes or as a reference to implement a Custom Account. ::::

Usage

::::code-group
[example.ts]
[config.ts]
::::

Returns

SmartAccount<SoladySmartAccountImplementation>

Parameters

entryPoint (optional)

  • Type: { abi: Abi, address: Address, version: EntryPointVersion }
Compatible EntryPoint for the Smart Account to reference. The EntryPoint is used to:
  • Determine the target EntryPoint address for the User Operation
  • Compute User Operation hashes
  • Retrieve the Smart Account nonce
  • Distinguish which type of UserOperation structure to use

factoryAddress

  • Type: Address
Factory address of the Smart Account.

owner

  • Type: Address | Account
Owner of the Smart Account.

salt (optional)

  • Type: Hex
Salt to use for Smart Account deployment.