Hot answers tagged

1

I think you need to wrap deploy() function in async (async () => { deploy('myContract'); })(); In general I prefer to use Truffle for contacts testing and deployment.


1

You will have to perform three steps to sign in and access any methods from a deployed contract : Create transaction Sign the transaction Broadcast the transaction // library required var Web3 = require('web3'); const EthereumTx = require('ethereumjs-tx').Transaction var web3 = new Web3('https://ropsten.infura.io/v3/....'); const PRIVATE_KEY_1 = '...


Only top voted, non community-wiki answers of a minimum length are eligible