mirror of https://github.com/hyperledger/besu
An enterprise-grade Java-based, Apache 2.0 licensed Ethereum client https://wiki.hyperledger.org/display/besu
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
1.0 KiB
21 lines
1.0 KiB
6 years ago
|
description: Ethereum accounts used for testing only on private network
|
||
|
<!--- END of page meta data -->
|
||
|
|
||
|
# Accounts for Testing
|
||
|
|
||
|
You can use existing accounts for testing by including them in the genesis file for a private network. Alternatively, Pantheon provides predefined accounts in development mode.
|
||
|
|
||
|
## Development Mode
|
||
|
|
||
|
When you start Pantheon with the [`--dev-mode`](/Reference/Pantheon-CLI-Syntax/#dev-mode) command line option, the `dev.json` genesis file is used by default.
|
||
|
|
||
|
The `dev.json` genesis file defines the accounts below that can be used for testing.
|
||
|
|
||
|
{!global/test_accounts.md!}
|
||
|
|
||
|
## Genesis File
|
||
|
|
||
|
To use existing test accounts, specify the accounts and balances in a genesis file for your test network. For an example of defining accounts in the genesis file, refer to [`dev.json`](https://github.com/PegaSysEng/pantheon/blob/master/config/src/main/resources/dev.json).
|
||
|
|
||
|
Use the [`--genesis`](/Reference/Pantheon-CLI-Syntax/#genesis) command line option to start Pantheon with the genesis file defining the existing accounts.
|