Docs

ThirdwebProvider

The ThirdwebProvider is a wrapper component that provides access to all of the SDK’s hooks and UI components.

Usage

Wrap your app in the ThirdwebProvider to access the SDK’s functionality from anywhere in your app.

If you are using one of default supported chains, provide the name of the chain as a string to the activeChain prop.

import { ThirdwebProvider } from "@thirdweb-dev/react";

function Example() {
  return (
    <ThirdwebProvider activeChain="ethereum" clientId="your-client-id">
      <App />
    </ThirdwebProvider>
  );
}

Props