Web3E icon indicating copy to clipboard operation
Web3E copied to clipboard

Help with interacting on mainnet

Open andrewhong5297 opened this issue 5 years ago • 2 comments
trafficstars

Looking for help or examples of using this library, I want to interact with a mainnet contract. Thanks!

andrewhong5297 avatar Oct 31 '20 04:10 andrewhong5297

Hi, the examples contain a lot of code that shows how you can interact with testnets. To interact with mainnet, you can just change the Infura settings.

JamesSmartCell avatar Dec 16 '21 04:12 JamesSmartCell

Update: Now just use:

Web3 web3 = new Web3(MAINNET_ID);

JamesSmartCell avatar Oct 03 '22 06:10 JamesSmartCell