Thirdweb
Learn how to use thirdweb to build applications on Abstract.
1. Create a new project
Create a new React or React Native project using the thirdweb CLI.
Select your preferences when prompted by the CLI, or use the recommended setup below.
Change directory into the newly created project:
(Replace 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 localhost
included in the allowed domains.
Create an .env.local
file and add your client ID as an environment variable:
Start the development server and navigate to http://localhost:3000
in your browser to view the application.
3. Connect the app to Abstract
Import abstractTestnet
from the thirdweb/chains
package:
Use the abstractTestnet
import as the value for the chain
property wherever required.
Learn more on the official thirdweb documentation.
Was this page helpful?