WalletConnect provider ethers js

Hello,
How can i set WalletConnect as a provider in ethers js ?
To activate Metamask, i’m using like this;

const provider = new ethers.providers.Web3Provider(window.ethereum);

But i didn’t figure out WalletConnect version.
In their docs they shows a way but it needs a Infura, there is no way to build with only Moralis?
I don’t ask authenticate with WalletConnect, i already did this, what i need is set WalletConnect as a provider on ethers js.
Thanks!

You can look into their docs for that.https://docs.walletconnect.com/quick-start/dapps/web3-provider#setup

1 Like