Creates an instance of a wallet provider
const provider = await createProvider(MetamaskProvider)await provider.init()// orconst providerDetectorInstance = await new ProviderDetector().init()const metamaskProvider = await createProvider(MetamaskProvider, { providerDetectorInstance })const phantomProvider = await createProvider(PhantomProvider, { providerDetectorInstance })// When using WalletConnectEvmProvider, it's required to set chainsDetails:Provider.setChainsDetails(chainsDetails)
Generated using TypeDoc
Description
Creates an instance of a wallet provider
Example