Ethers
Privy is fully compatible with ethers.js. To get an ethers provider for a user’s connected wallet, first find your desired wallet from thewallets
array and switch it to your desired network, using the wallet’s switchChain
method:
wallets
array and switch it to your desired network, using the wallet’s switchChain
method: