Skip to main content
Use the createAbstractClient function to initialize an AbstractClient instance, which provides a set of actions and methods to make use of the Abstract Global Wallet. This is useful if you need to create a new AbstractClient instance when you already have a signer, such as in the server-side environment of your application.

Import

Usage

Parameters

Account
required
The EOA account that owns the AGW smart contract wallet.
  • If this account has not yet created an Abstract Global Wallet, the first transaction they send will first deploy one, set the account as the owner and then continue with the transaction.
  • If the account has already created an Abstract Global Wallet, it will use the existing AGW.
ChainEIP712
required
A valid EIP712 chain such as abstractTestnet.
ChainEIP712
A viem Transport. Defaults to http().

Returns

Returns an AbstractClient instance. This is an extension of the Viem wallet client with additional methods and properties specific to the Abstract Global Wallet.