Has web3.eth.getAccounts() behavior changen when using MetaMask? I remember it used to return a full list of available accounts, but now it looks like it only returns array of length 1 - the current selected account.


It's returned an array of length 1 for over a year, I can't remember when it ever returned more.

  • A MetaMask Developer

Maybe you changed the provider? See this: https://github.com/ethereumjs/testrpc/issues/54

Your Answer

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

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