web3modal-vanilla-js-example
web3modal-vanilla-js-example copied to clipboard
It's doesn't support Binance Smart Chain on WalletConnect
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?
Same problem here. This is because Web3 Modal uses infura, and infura does not support BSC
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 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