Skip to content

Commit

Permalink
docs: indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdefinitelyahuman committed Jun 3, 2021
1 parent 1d401c4 commit 413db3e
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions docs/account-management.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ When we use the term `local` it implies that the account exists locally on your

You can manage your locally available accounts via the commandline:

::
::

$ brownie accounts
$ brownie accounts

Generating a New Account
========================

To generate a new account using the command line:

::
::

$ brownie accounts generate <id>
$ brownie accounts generate <id>

You will be asked to choose a password for the account. Brownie will then generate a random private key, and make the account available as ``<id>``.

Expand All @@ -30,9 +30,9 @@ Importing from a Private Key

To add a new account via private key:

::
::

$ brownie accounts new <id>
$ brownie accounts new <id>

You will be asked to input the private key, and to choose a password. The account will then be available as ``<id>``.

Expand All @@ -41,9 +41,9 @@ Importing from a Keystore

You can import an existing JSON keystore into Brownie using the commandline:

::
::

$ brownie accounts import <id> <path>
$ brownie accounts import <id> <path>

Once imported the account is available as ``<id>``.

Expand All @@ -52,9 +52,9 @@ Exporting a Keystore

To export an existing account as a JSON keystore file:

::
::

$ brownie accounts export <id> <path>
$ brownie accounts export <id> <path>

The exported account will be saved at ``<path>``.

Expand All @@ -63,16 +63,16 @@ Unlocking Accounts

In order to access a local account from a script or console, you must first unlock it. This is done via the :func:`Accounts.load <Accounts.load>` method:

.. code-block:: python
.. code-block:: python
>>> accounts
[]
>>> accounts.load(id)
>>> accounts.load('my_account')
Enter the password for this account:
<LocalAccount object '0xa9c2DD830DfFE8934fEb0A93BAbcb6e823e1FF05'>
>>> accounts
[<LocalAccount object '0xa9c2DD830DfFE8934fEb0A93BAbcb6e823e1FF05'>]
>>> accounts
[]
>>> accounts.load(id)
>>> accounts.load('my_account')
Enter the password for this account:
<LocalAccount object '0xa9c2DD830DfFE8934fEb0A93BAbcb6e823e1FF05'>
>>> accounts
[<LocalAccount object '0xa9c2DD830DfFE8934fEb0A93BAbcb6e823e1FF05'>]
Once the account is unlocked it will be available for use within the :func:`Accounts <brownie.network.account.Accounts>` container.
Expand All @@ -82,14 +82,14 @@ Unlocking Accounts on Development Networks
On a local or forked development network you can unlock and use any account, even if you don't have the corresponding private key.
To do so, add the account to the ``unlock`` setting in a project's :ref:`configuration file<config>`:
.. code-block:: yaml
.. code-block:: yaml
networks:
development:
cmd_settings:
unlock:
- 0x7E1E3334130355799F833ffec2D731BCa3E68aF6
- 0x0063046686E46Dc6F15918b61AE2B121458534a5
networks:
development:
cmd_settings:
unlock:
- 0x7E1E3334130355799F833ffec2D731BCa3E68aF6
- 0x0063046686E46Dc6F15918b61AE2B121458534a5
The unlocked accounts are automatically added to the :func:`Accounts <brownie.network.account.Accounts>` container.
Note that you might need to fund the unlocked accounts manually.
Expand Down

0 comments on commit 413db3e

Please sign in to comment.