RPC provider vs window.ethereum #3609
Unanswered
glitch-txs
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, if I use
const provider = new ethers.providers.JsonRpcProvider()
Passing my own url (let's say an infura endpoint).
Then when I call a contract for a writing function (e.g. mint a token) the wallet will popup in the frontend dapp (like metamask) and the user will accept this transaction.
My question is will the wallet extension use the RPC endpoint that I'm providing or will it use the ones that are stored in the wallet itself regardless of the dapp?
Beta Was this translation helpful? Give feedback.
All reactions