Skip to main content

Introduction

Wallet creation deploys a config and vault with an initial authority and permissions.
  • Use when: a user or application needs a new wallet on your selected EVM deployment.
  • For: onboarding flows using a compatible Swig factory.

How it works

  1. Encode the root authority and give it All permission.
  2. Choose a public wallet identifier and salt, then predict the config address.
  3. Submit factory deployment with any initial vault funding.
  4. Confirm the receipt and read the config and vault addresses from SwigDeployed.

Inputs and result

Reusing the same name and root settings targets the same address; deploying it twice reverts. The signer pays initial funding and transaction gas.

SDK example

Supply a Viem LocalAccount, RPC URL, and factory address after Environment setup.
Store the account address for adding roles. Send later asset deposits to the vault address. Complete examples: TypeScript, Rust, Python.