I am making a DAPP on BSC which allows users to access through browser and mobile. So I would like to integrate the WalletConnect into my DAPP.
I simply install the npm package "@walletconnect/web3-provider". with the following code:
try {
console.log("Log in with connect wallet")
const provider = new WalletConnectProvider({
rpc: {
56: "https://bsc-dataseed1.binance.org",
},
});
await provider.enable();
const web3 = new Web3(provider);
resolve(web3)
} catch {
console.log("Install metamask or use wallet connect")
}
It is working normally if I use it with my metamask ios APP. As long as I select trust wallet, it shows "no available network" like below:
Does anybody know what is wrong with my setting? It will be very appreciated if somebody can help me out.