Replies: 7 comments 5 replies
-
Hey @pat-mw Please check out https://github.com/Web3Auth/web3auth-web/tree/master/demo/getting-started/eth to see how it's implemented in JS. |
Beta Was this translation helpful? Give feedback.
-
Hi @shahbaz17 thanks for the prompt response. |
Beta Was this translation helpful? Give feedback.
-
Hey @shahbaz17 sorry for the delay and thanks for helping out. The imports look like this:
And indeed I am using I tried making the function Other than that I have not modified the code: everything is as in Any ideas? |
Beta Was this translation helpful? Give feedback.
-
The only other thing I think it could be would be the chain id. My web3auth Do you have a list of chain id's so that I can swap to Mumbai? I'll give that a go. |
Beta Was this translation helpful? Give feedback.
-
Ok @shahbaz17 confirmed that I think the issue was the chain config. However another small issue I'm having is regarding the web3auth modal - it appears behind the elements on the rest of the page so I cannot seem to click/interact with it: I've tried the solution regarding the css properties described here reown-com/appkit#165 but no luck so far. I suppose this is now irrelevant to the OP but If you have any ideas would highly appreciate it! |
Beta Was this translation helpful? Give feedback.
-
Hi @shahbaz17 I managed to get this working thank you. |
Beta Was this translation helpful? Give feedback.
-
@shahbaz17 But getting error in console, first was getting web3Auth is not a function so I just added before it like "window.Modal.web3Auth" |
Beta Was this translation helpful? Give feedback.
-
Hi there!
I'm building a proof-of-concept NFT integration for an events community (https://farrago.club)
I would like to use Web3Auth wallet in order to onboard our audience in the most seamless way possible.
I plan on using thirdweb dashboard and contracts in tandem with their Python backend SDK in order to handle the Dapp functionality.
My web-app builder is Anvil (https://anvil.works) which is a really solid framework for developing applications mostly in Python.
I previously had the Web3Auth wallet working using Moralis v1 SDK and their plain Javascript implementation. However, recently Moralis has deprecated this SDK and also taken down my server in-favour for their React.js and Next.js implementations.
Anvil allows vanilla javascript to be used in extension to the python-based client-side framework.
However, the web3auth docs outlined here: https://web3auth.io/docs/sdk/web/modal seem to be written also with React/Next.js in mind - with
npm
being used as the package manager.I need a way to use web3auth and get the user's wallet address and email address by using vanilla javascript, ideally with
<script src="..."></script>
imports.I have tried to install the dependencies outlined above from CDN providers but to no avail. (I am kind of a noob with javascript so this isn't helping)
Any guidance would be massively appreciated!!
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions