'WalletConnectProvider not working with custom RPC
I want to connect custom RPC with WalletConnectProvider. But I keep getting an error of Uncaught Error: PollingBlockTracker - encountered and error.
Here below is my code:
const providerEth = new WalletConnectProvider({
rpc: {
32520: "https://nc-dataseed.brisescan.com",
},
chainId: 32520,
});
await providerEth.enable();
let provider_extended = await new ethers.providers.Web3Provider(
providerEth
);
const tokenContract = new ethers.Contract(
contractAddress,
contractABI,
provider_extended
);
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|