Account Abstraction
Flow
General

General Flow

General Xellar Embedded Wallet API

1. Create Account

The flow begins with account creation, which is initiated by a single API call. Here's what happens when you create an account:

  • Submit Owner Address: The API call includes the owner address, which establishes the ownership of the account.
  • Reserve Account Address: The system reserves the address for the account. The account exists in the system but remains in an not_deployed state.
  • Obtain Account Abstraction Address: After the API call, you receive your account abstraction account address. While the account exists in the system, it cannot yet execute any user operations or interact with the blockchain.

2. Top Up Gas Tank

Before activating the account, the gas tank must be funded since the account activation is a user operation. You can choose to top up either your individual gas tank or the organization gas tank, depending on your preference and requirements.

3. Activate Account

Once the gas tank is funded, the account can be activated. This process deploys the smart contract wallet on the blockchain. After activation, the account is ready to execute user operations, interact with dApps, and utilize all features of account abstraction.

Note: Account activation is performed on a single network at a time. If you wish to deploy the account on multiple supported networks, you must repeat the activation process separately for each network. Activation does not automatically deploy the account across all networks.

4. Execute any User Operation

After the account activation is completed, you can execute any user operation using either the API or the SDK. The available user operations include:

  1. Send Token
  2. Send Native Coin
  3. Send NFT ERC 721
  4. Send NFT ERC 1155
  5. Sign Transaction