Skip to main content
Ensure you have the following installed on your machine:
  • Node.js v18.0.0 or later.
  • This page assumes you have already created a TypeScript project. If not, you can create one by running npm init -y.

1. Install agw-client

To install the agw-client package, run the following command:

2. Instantiate a client

Use the createAbstractClient function to instantiate a new instance of the AbstractClient. The signer field is the EOA that owns the Abstract Global Wallet smart contract. 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.

3. Use the client

Once the client is instantiated, you can use it to send transactions from the AGW smart contract wallet. The transactions are signed by the EOA account and sent from the AGW smart contract wallet.