This is a demo app that demonstrates creating and using scoped sessions using Smart Accounts + thirdweb Engine
yarn install
To run this project, you will need to add environment variables
- NEXT_PUBLIC_TW_CLIENT_ID: Your thirdweb client ID
- TW_ENGINE_ACCESS_KEY: thirdweb Engine access key used by the Next JS backend to Engine
- TW_ENGINE_URL: the URL to your instance of thirdweb Engine
- Deploy a thirdweb smart account factory to the chain of your choice
- Deploy a thirdweb Open Edition contract to the chain of your choice
- Modify the
activeChain={ArbitrumGoerli}
inpages/_app.tsx
to the chain you are using - Modify the
lib/constants.ts
file with your Smart Account Factory Address and Open Edition Contract Addresses
To learn more about thirdweb, take a look at the following resources:
- thirdweb React Documentation - learn about our React SDK.
- thirdweb TypeScript Documentation - learn about our JavaScript/TypeScript SDK.
- thirdweb Portal - check our guides and development resources.
- Next.js Documentation - learn about Next.js features and API.
- Templates
You can check out the thirdweb GitHub organization - your feedback and contributions are welcome!
For any questions, suggestions, join our discord at https://discord.gg/thirdweb.