Skip to main content

ThirdwebProviderProps interface

The possible props for the ThirdwebProvider.

Signature:

export interface ThirdwebProviderProps<TChains extends Chain[] = typeof defaultChains> 

Properties

PropertyModifiersTypeDescription
activeChain?TChains[number]["chainId"] | TChains[number]["slug"] | Chain(Optional) The network to use for the SDK.
authConfig?ThirdwebAuthConfig(Optional) The configuration used for thirdweb auth usage. Enables users to login to backends with their wallet.
autoConnect?boolean(Optional) Whether or not to attempt auto-connect to a wallet.
chainRpc?Record<number, string>(Optional) A partial map of chainIds to rpc urls to use for certain chains If not provided, will default to the rpcUrls of the chain objects for the supported chains
dAppMeta?DAppMetaData(Optional) Metadata to pass to wallet connect and walletlink wallet connect. (Used to show *which* dApp is being connected to in mobile wallets that support it) Defaults to just the name being passed as thirdweb powered dApp.
desiredChainId?number | undefined(Optional) The chainId that your dApp is running on.
queryClient?QueryClient(Optional) The react-query client to use. (Defaults to a default client.)
sdkOptions?SDKOptions(Optional) The to pass to the thirdweb SDK comes with sensible defaults
storageInterface?ThirdwebStorage(Optional) The storage interface to use with the sdk.
supportedChains?Readonly<TChains>(Optional) Chains to support. If not provided, will default to the chains supported by the SDK.
walletConnectors?WalletConnector[](Optional) An array of connector types (strings) or wallet connector objects that the dApp supports If not provided, will default to metamask (injected), wallet connect and walletlink (coinbase wallet) with sensible defaults