Skip to main content

ThirdwebProviderProps.desiredChainId property

The chainId that your dApp is running on. While this *can* be undefined it is required to be passed. Passing undefined will cause no SDK to be instantiated. When passing a chainId, it **must** be part of the supportedChains array.

Signature:

desiredChainId: TSupportedChain extends Chain ? TSupportedChain["id"] : TSupportedChain | undefined;