• Parameters

    Returns Promise<Provider>

    Description

    Creates an instance of a wallet provider

    Example

    const provider = await createProvider(MetamaskProvider)
    // or
    const web3Instance = await new Web3().init()
    const metamaskProvider = await createProvider(MetamaskProvider, { web3Instance })
    const phantomProvider = await createProvider(PhantomProvider, { web3Instance })

Generated using TypeDoc