Prerequisites
Prerequisites
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 theAbstractClient
.
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.