Replies: 2 comments 3 replies
-
Heya! The injected provider is actually neither, it is a standard known as EIP-1193. You can convert a Provider and optionally a Signer into an EIP-1193-compatible object using the Eip1193Bridge. It is still experimental, but should suffice for most purposes. But you may not be able to "just inject" an object into So it really depends a lot on what you are trying to do with it. |
Beta Was this translation helpful? Give feedback.
-
I am having the same problem with the window.ethereum. Have you found any solution, please?? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
hi guys,
is it possible to make an injected provider from ethers.js - the same way metamask does it ?
window.ethereum = new ethers.providers.Web3Provider(new ethers.providers.JsonRpcProvider('https://rinkeby.infura.io'))
is this sufficient ?
because when im injecting this into pancakeswap website, im constantly getting the event
wallet_addethereumchain
. I'm not sure if this is what all the dapps expect in terms of an object.I tried a bunch of different iterations, but i thought it would best to ask here.
should
window.ethereum
be set as a jsonrpcprovider ...or as a web3provider ?Beta Was this translation helpful? Give feedback.
All reactions