Getting Started
Learn how to integrate Abstract Global Wallet into your JavaScript or TypeScript project using the agw-client package.
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 isntance 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.
Was this page helpful?