ThirdwebProvider
The ThirdwebProvider
is a wrapper component that provides access to all of the SDK’s hooks and UI components.
API Key
You will require an API key to use thirdweb's infrastructure services with the SDK.
you need to first obtain an API key from the dashboard and then copy the "Client ID" and pass it to the ThirdwebPovider
as the clientId
prop.
Usage
Wrap your app in the ThirdwebProvider
to access the SDK’s functionality from anywhere in your app.
import { ThirdwebProvider } from "@thirdweb-dev/react";
function Example() {
return (
<ThirdwebProvider
activeChain="ethereum"
clientId="your-client-id"
>
<App />
</ThirdwebProvider>
);
}