createAbstractClient
Function to create an instance of the Abstract Global Wallet client.
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.
Import
Usage
Parameters
The EOA account that is the owner of 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.
A valid EIP712 chain such as
abstractTestnet
.
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.
Was this page helpful?