How can I get the
provider from a
Wallet when using ethersjs?
I have tried getting the provider through
wallet.provider but this is different from the Ethereum provider which has the
I have also tried the following:
const network = await wallet.provider.getNetwork(); const provider = new providers.JsonRpcProvider(network);
JsonRpcProvider in this case should return a provider object which has the
send method that is different from
wallet.provider. However, the above still doesn't work because I'm not sure how I can convert from the wallet to the provider without losing any information.