Integrating with ethers
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 the wallets
array and switch it to your desired network, using the wallet’s switchChain
method:
Ethers v5
Ethers v6
Was this page helpful?