Skip to content

Commit

Permalink
More deployment account configuration information.
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Mar 12, 2018
1 parent 3783a9f commit aecc2e9
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions docs/source/chain.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ The default configuration set in the packge distribution is in ``populus.json``

Ethereum node software (geth, parity) must be started beforehand and configured to allow JSON-RPC in the particular port.

Starting Ethereum node
======================
Starting Ethereum node and creating deployment accounts
=======================================================

Go Ethereun mainnet
^^^^^^^^^^^^^^^^^^^
Expand All @@ -48,15 +48,29 @@ Example how to start Go Ethereum JSON-RPC for mainnet:
geth --fast --ipcdisable --rpc --rpcapi "db,eth,net,web3,personal" --verbosity 3 --rpccorsdomain "*" --cache 2048
You can create a new mainnet account which you will use a deployment account from geth console::

geth attach http://localhost:8545

Create a new private key from a seed phrase in geth console::

> web3.sha3("my super secret seed phrase")
0x000000...

Now import this 256-bit number as a geth account private key::

> personal.importRawKey("0x00000", "my account password")

You also need to unlock your deployment every time you do a deployment from `geth` console.

Example::

geth attach http://localhost:8545

Then unlock account for 1 hour:
Then unlock account for 1 hour in geth console::

personal.unlockAccount("0x00000000...", "my account password", 3600)

personal.unlockAccount("0x00000000...", "your account password", 3600)

Kovan testnet
^^^^^^^^^^^^^
Expand All @@ -79,11 +93,4 @@ Example how to start Parity JSON-RPC for Kovan testnet, unlocking your Kovan acc
It is recommended that you use Kovan testnet for any testing and trials, because of faster transaction confirmation times.
Unlocking the deployment account
================================

For Parity you need to have `parity --unlock` given from the command line to unlock the account for automatic access.

For Go Ethereum you need to use `geth console` and run `personal.unlockAccount` to unlock your account for some time, say 3600 seconds, before running scripts.

0 comments on commit aecc2e9

Please sign in to comment.