web3modal-vanilla-js-example icon indicating copy to clipboard operation
web3modal-vanilla-js-example copied to clipboard

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

Open metou3 opened this issue 3 years ago • 3 comments

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

metou3 avatar Jul 18 '21 14:07 metou3

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

JJRuizDeveloper avatar Nov 12 '21 10:11 JJRuizDeveloper

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
            },
          },
        },
      }
      ```

DloomPlz avatar May 04 '22 11:05 DloomPlz

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

hankdangerfield avatar Sep 14 '22 14:09 hankdangerfield