How to use Web3.js in Wix? How to connect to wallets like Metamask?
You can install the Web3 NPM (read here how to install NPMs).
I did install via npm but to connect to wallet like metamask I need access to windows.ethereum but wixwindow doesn’t have .ethereum, nor wix allows to access window. How can we connect to say metamask or any web3 wallet ?
I’ve never tried it so I can’t tell you for sure. But maybe you have to use it in a custom element where you have access to the DOM (including to window).
Hello there. Did you find a solution for web3?
Hi All,
I will look to see if it can be achieved in a custom element, however this would lead to more code I believe, the easiest way is to create your own wallets on wix using web3 or ethers in the backend and calling the functions from the client side.
Si