How to set AppKit provider for web3.js? #3292
Alireza-Zojaji
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear smart contract front-end developers,
As you know,
AppKit
is the new verion ofWeb3Modal
. I am using it in a webjavascript
program to show a dialog to connect the web page to the desired wallet. Then I want to useWeb3.js
to interact with some smart contracts.So I use this program:
Now I want to use a Web3 provider instead of
xxx
in the last line of the above program.For example if I use
window.ethereum
it works only if I use Metamask wallet.What can I use instead of Web3 provider so it connects to the wallet that selected in AppKit modal dialog?
I will appreciate you, even if you give a solution in
Web3Modal
.Beta Was this translation helpful? Give feedback.
All reactions