var Web3 = require('web3')
var url = 'https://ropsten.infura.io/v3/xxxxx'
var mycontract = '0x7eAd553D7E528Bdf12364177453f25bfa0682FD6'
var contractAbi = [ taken from remix];
var web3 = new Web3(url)
console.log(web3.version); // 1.0.0-beta.46
var contract = new web3.eth.Contract(contractAbi, mycontract);

output from contract.methods gives the whole web3 namespace not the contract functions. Any ideas?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.