WalletFactory

Functions

createWallet

function createWallet(uint256 nonce) external returns (address);

Clones wallet for msg.sender at deterministic address.

Parameter
Description

nonce

Wallet's nonce, allows owner to have multiple wallets. Does not have any order limitations, but it's recommended to specify nonce incrementally.

createWallet

function createWallet(
    uint256 nonce,
    bytes calldata signature
) external returns (address);

Meta transaction version of createWallet. Recovers signer from EIP712 signature and clones wallet for it at specified address. Often used with wallet.call.

CREATE_WALLET_TYPEHASH

function CREATE_WALLET_TYPEHASH() external view returns (address);

Returns EIP712 typehash for "Create wallet" message.

baseWallet

function baseWallet() external view returns (address);

Returns wallet implementation address. Used in wallet cloning.

getWallet

function getWallet(
    address owner,
    uint256 nonce
) external view returns (address wallet, bool deployed);

Calculates wallet address, given owner and nonce, check if wallet already deployed.

Last updated