I keep getting Error: Invalid address when trying to run the application. My current setup of web3 using infura node is

if (typeof web3 !== 'undefined') {
  web3 = new Web3(web3.currentProvider);
} else {
  const provider = new Web3.providers.HttpProvider('https://rinkeby.infura.io/doeL97MLPLVXBgAnRZRJ');
  web3 = new Web3(provider);
web3.eth.defaultAccount = web3.eth.accounts[0];

The instance of the contract is

const contract = web3.eth.contract(abi);
const instance = contract.at(address);

when trying to do a call to the contract, the value returned is undefined

const count = await EmployeeStore.employeesCount().then(function(value) {

as shown in the picture below, web3 is injected correctly and able to retrieve the accounts. Web3 injected

  • Could you be a little more specific and provide the address you are using? Are you referring to the contract address or your personal account address? This will help us answering your question better. Oct 28, 2018 at 8:52

1 Answer 1


I suppose this due to invalid checksum, your address should have a valid checksum, it depends on the lower/upper case of characters in address.Refer to this

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.