Skip to content

Commit

Permalink
Merge pull request #2764 from Chriton/hdWalletExample
Browse files Browse the repository at this point in the history
added hardware wallet example
  • Loading branch information
fvictorio committed May 30, 2022
2 parents 1c7f8b7 + 4d210f1 commit 868f0bf
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion docs/config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ This kind of network is configured with objects with the following fields:

### HD Wallet config

To use an HD Wallet with Hardhat you should set your network's `accounts` field to an object with the following fields:
To use an [HD Wallet](https://github.com/ethereumbook/ethereumbook/blob/develop/05wallets.asciidoc#hd_wallets) with Hardhat you should set your network's `accounts` field to an object with the following fields:

- `mnemonic`: A required string with the mnemonic phrase of the wallet.

Expand All @@ -96,6 +96,25 @@ To use an HD Wallet with Hardhat you should set your network's `accounts` field

- `passphrase`: The passphrase for the wallet. Default value: empty string.

For example:

```js
module.exports = {
networks: {
rinkeby: {
url: "...",
accounts: {
mnemonic: "test test test test test test test test test test test junk",
path: "m/44'/60'/0'/0",
initialIndex: 0,
count: 20,
passphrase: "",
},
},
},
};
```

### Default networks object

```js
Expand Down

0 comments on commit 868f0bf

Please sign in to comment.