- Install Provider Package
npm install --save @walletconnect/web3-provider
# OR
yarn add @walletconnect/web3-provider
- Set Provider Options
import WalletConnectProvider from "@walletconnect/web3-provider";
const providerOptions = {
walletconnect: {
package: WalletConnectProvider, // required
options: {
infuraId: "INFURA_ID" // required
}
}
};
See the full list of options for WalletConnect Web3 provider.
Note: A WalletConnect instance is available on the provider as provider.wc