Skip to main content

ThirdwebSDKProvider variable

Gives access to the ThirdwebSDK instance and other useful hooks to the rest of the app. Requires to be wrapped with a ConnectionProvider and a WalletProvider from @solana/wallet-adapter-react.

Example

import { useWallet } from "@solana/wallet-adapter-react";
import { ThirdwebProvider } from "@thirdweb-dev/react/solana";

const ThirdwebApp = () => {
const wallet = useWallet();
return (
<ThirdwebSDKProvider network={"devnet"} wallet={wallet}>
<YourApp />
</ThirdwebSDKProvider>
);
};

Signature:

ThirdwebSDKProvider: ComponentWithChildren<ThirdwebSDKProviderProps>;