Skip to content

thirdweb-example/smart-account-engine-sessions-demo

Repository files navigation

Getting Started

This is a demo app that demonstrates creating and using scoped sessions using Smart Accounts + thirdweb Engine

To install

yarn install

Environment Variables

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

Before Running

  1. Deploy a thirdweb smart account factory to the chain of your choice
  2. Deploy a thirdweb Open Edition contract to the chain of your choice
  3. Modify the activeChain={ArbitrumGoerli} in pages/_app.tsx to the chain you are using
  4. Modify the lib/constants.ts file with your Smart Account Factory Address and Open Edition Contract Addresses

Learn More

To learn more about thirdweb, take a look at the following resources:

You can check out the thirdweb GitHub organization - your feedback and contributions are welcome!

Join our Discord!

For any questions, suggestions, join our discord at https://discord.gg/thirdweb.