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.
24 lines
1.1 KiB
24 lines
1.1 KiB
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 [`--network=dev`](../Reference/Pantheon-CLI-Syntax.md#network)
|
|
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-file`](../Reference/Pantheon-CLI-Syntax.md#genesis-file) command line option to
|
|
start Pantheon with the genesis file defining the existing accounts.
|
|
|