WalletConnect / web3modal-vanilla-js-example

An example application how to use Web3modal from vanilla JavaScript
https://web3modal.com/
178 stars 147 forks source link

It's doesn't support Binance Smart Chain on WalletConnect #13

Open metou3 opened 3 years ago

metou3 commented 3 years ago

When I tried to connect to WalletConnect, it has errors like below. I already added this to providerOptions:

rpc: { 56: 'https://bsc-dataseed.binance.org/', }, network: 'binance', }

Look inside the CHAIN_DATA_LIST, it doesn't include binance smart chain. But how do I add the network to webpack?

Screenshot from 2021-07-18 16-10-08 Screenshot from 2021-07-18 16-10-03

JJRuizDeveloper commented 2 years ago

Same problem here. This is because Web3 Modal uses infura, and infura does not support BSC

DloomPlz commented 2 years ago

I suggest you look at https://docs.walletconnect.com/quick-start/dapps/web3-provider#required

const providerOptions = {
        walletconnect: {
          package: WalletConnectProvider,
          options: {
            infuraId: 'TOCHANGE', // If you need mainnet eth
            rpc: {
              // Official nodes
              56: 'TOCHANGE', // Mainnet
              97: 'TOCHANGE', // Testnet
            },
          },
        },
      }
hankdangerfield commented 2 years ago

I suggest you look at https://docs.walletconnect.com/quick-start/dapps/web3-provider#required

const providerOptions = {
        walletconnect: {
          package: WalletConnectProvider,
          options: {
            infuraId: 'TOCHANGE', // If you need mainnet eth
            rpc: {
              // Official nodes
              56: 'TOCHANGE', // Mainnet
              97: 'TOCHANGE', // Testnet
            },
          },
        },
      }

I have set mine as follows and still get the same error I don't know what I am doing wrong image image