Skip to content

Commit

Permalink
docs updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Furter committed Apr 3, 2019
1 parent e09dce3 commit bfedd22
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions docs/web3-eth.rst
Original file line number Diff line number Diff line change
Expand Up @@ -419,13 +419,9 @@ getAccounts
web3.eth.getAccounts([callback])
Returns a list of accounts the node controls by using the provider and calling
the RPC method ``eth_accounts``. Using :ref:`web3.eth.accounts.create() <accounts-create>`
will not add accounts into this list. For that use
:ref:`web3.eth.personal.newAccount() <personal-newaccount>`.

The results are the same as :ref:`web3.eth.personal.getAccounts() <personal-getaccounts>` except that calls
the RPC method ``personal_listAccounts``.
Returns a list of accounts the node controls by using the provider and calling the RPC method ``eth_accounts``.
If there are unlocked local accounts then it will return them instead of sending a request to the node.
This means you can add accounts with :ref:`web3.eth.accounts.create() <accounts-create>` and you will get them returned here.

-------
Returns
Expand Down

0 comments on commit bfedd22

Please sign in to comment.