ethers provider #2684
-
what is the difference between ethers.jsonRpcprovider() and ethers.web3provider()? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@Naveed-Jameel These are similar things both connect with metamask, just the difference is |
Beta Was this translation helpful? Give feedback.
-
Hi @Naveed-Jameel |
Beta Was this translation helpful? Give feedback.
@Naveed-Jameel These are similar things both connect with metamask, just the difference is
web3Provider
just takeswindow.ethereum
and automatically gets the HTTP endpoint of RPC_URL from metamask, on the other hand,jsonRpcProvider
takes RPC_URL in the parameter just like we were giving alchemy url.