This example demonstrates how to use the agw-client in a simple TypeScript setup.
-
Get a copy of the
agw-typescriptexample directory from the Abstract Examples repository:mkdir -p agw-typescript && curl -L https://codeload.github.com/Abstract-Foundation/examples/tar.gz/main | tar -xz --strip=2 -C agw-typescript examples-main/agw-typescript && cd agw-typescript
-
Install dependencies
npm install
-
Run the TypeScript example
npm run start
This will execute the script that demonstrates creating an AGW client, deploying the AGW smart contract (if not already deployed), and sending a transaction through it.