How to use Web3.js in Wix?

I have created a website and to allow me further expand the site I need to query the Ethereum blockchain using the Web3 API. Web3 is a Javascript API. How do I use this within WIX? Web3.js can be found in Github here: GitHub - web3/web3.js: Ethereum JavaScript API

For example I want to use the API to get the balance of an Ethereum wallet in the following way:web3.fromWei(web3.eth.getBalance(β€˜0x2910543af39aba0cd09dbb2d50200b3e800a63d2’));

thanks.

1 Like

Hi,
Currently, there’s no option to import npm modules to the editor. You can use fetch to get / post information to external REST API .

Best,
Tal.

I need your help.

Please add your own issue into a new post instead of bumping up an old post.

This is an old post and is being closed.