Account Abstraction
SDK
User Operation
Create User Operation
Activate Account

Activate Account

Overview

This SDK method allows you to create a user operation for activating your Account Abstraction account. The account must be funded with sufficient gas before activation.

Method

xellar.accountAbstraction.create.activate(
  accountId: string
);

Parameters

  • accountId (required): The ID of your Account Abstraction account.

Response

The response will include an object with the following properties:

  • userOpId (string): The unique identifier of the user operation.
  • hash (string): The hash of the user operation.
  • validUntil (number): The timestamp until which the user operation is valid.

Example Response

{
  "userOpId": "uop_123456789",
  "hash": "0x1234...",
  "validUntil": 1234567890
}
⚠️

The user operation must be signed and submitted before the validUntil timestamp expires.

ℹ️

After creating the user operation, you need to sign it using the signMessageHash method and then submit it using the submitUserOp method.

⚠️

Make sure your account has sufficient gas in the gas tank before attempting to activate it. The activation will fail if there isn't enough gas to deploy the smart contract wallet.