Prerequisites
Prerequisites
Ensure you have the following installed on your machine:
- Node.js v18.0.0 or later.
1. Create a new project
Create a new React or React Native project using the thirdweb CLI.Recommended application setup
Recommended application setup
We recommend selecting the following options when prompted by the thirdweb CLI:
my-abstract-app with your created project name.)
2. Set up a Thirdweb API key
On the thirdweb dashboard, create your account (or sign in), and copy your project’s Client ID from the Settings section. Ensure thatlocalhost is included in the allowed domains.
Create an .env.local file and add your client ID as an environment variable:
http://localhost:3000 in your browser to view the application.
3. Connect the app to Abstract
Import the Abstract chain from thethirdweb/chains package:
chain property wherever required.