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.

2 Answers 2


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

This site is temporarily in read-only mode and not accepting new answers.

Not the answer you're looking for? Browse other questions tagged .