https://github.com/thirdweb-example/account-abstraction
Collection of ERC-4337 examples
https://github.com/thirdweb-example/account-abstraction
Last synced: 9 months ago
JSON representation
Collection of ERC-4337 examples
- Host: GitHub
- URL: https://github.com/thirdweb-example/account-abstraction
- Owner: thirdweb-example
- Created: 2024-04-20T10:11:01.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-20T03:38:07.000Z (over 1 year ago)
- Last Synced: 2025-04-02T18:21:53.832Z (11 months ago)
- Language: TypeScript
- Homepage: https://account-abstraction.thirdweb-preview.com
- Size: 354 KB
- Stars: 22
- Watchers: 2
- Forks: 23
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Account Abstraction with the thirdweb Connect SDK
This repo is a collection of reference implementations for account abstraction features using the [Connect SDK](https://portal.thidweb.com/connect).
Showcases how to build:
- Gasless transactions
- Session keys
- Batch transactions
## Live demo
[Play around with the live preview](https://account-abstraction.thirdweb-preview.com)
## Running locally
### Setup client id
Before you start, you need to replace the placeholder `clientId` with your client ID to use thirdweb SDK.
Refer to [Creating a client](https://portal.thirdweb.com/typescript/v5/client) guide to see how you can get a client id.
Go to `src/constants.ts` file and replace the placeholder `clientId` with your client ID.
```ts
const clientId = "......";
```
### Install dependencies
```bash
yarn install
```
### Start development server
```bash
yarn dev
```
## Resources
- [thirdweb Connect documentation](https://portal.thirdweb.com/connect)
- [Connect SDK refence](https://portal.thirdweb.com/typescript/v5)
- [thirdweb Dashboard](https://thirdweb.com/dashboard)
## Join our Discord!
For any questions or suggestions, join our discord at [https://discord.gg/thirdweb](https://discord.gg/thirdweb).