Skip to content

Commit

Permalink
hd_account_id -> enable_hd
Browse files Browse the repository at this point in the history
  • Loading branch information
smk762 committed Oct 17, 2024
1 parent 756da8b commit 39a3a46
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ When running the Komodo DeFi API via commandline with the `mm2` binary, some bas

#### Example for HD Wallets:

If you are using HD wallets, you will need to add the `hd_account_id` value to your `MM2.json` file. This value will be used in the derivation path for all coins, and will take the place of the `COIN_ID` value in the following path: `m/44'/COIN_ID'/<hd_account_id>'/CHAIN/ADDRESS_ID`.
If you are using HD wallets, you will need to set `enable_hd` to `true` in to your `MM2.json` file.

<Note>
Using the same seed phrase with / without setting the `hd_account_id` value
Using the same seed phrase with / without setting `enable_hd` to `true`
will result in different addresses being generated. For example, when using
the seed phrase `february soldier message acid member jump shadow walk novel impose puppy tornado`: - If the `hd_account_id` value is set to `0` in
the seed phrase `february soldier message acid member jump shadow walk novel impose puppy tornado`: - If `enable_hd` is `true` in your
MM2.json, the first address in the wallet returns the address
`0x26cE5D1cD4CC673a1b0b980371C7c862B9503452` for ETH - If the `hd_account_id`
value is not set, the wallet will return the address
`0x26cE5D1cD4CC673a1b0b980371C7c862B9503452` for ETH - If the `enable_hd`
is `false` (or not set), the wallet will return the address
`0x8c40a6E127c7a13e26ce95deA88354C3fb134580` for ETH
</Note>

Expand All @@ -98,7 +98,7 @@ If you are using HD wallets, you will need to add the `hd_account_id` value to y
"passphrase": "ENTER_UNIQUE_SEED_PHRASE_DONT_USE_THIS_CHANGE_IT_OR_FUNDS_NOT_SAFU",
"allow_weak_password": false,
"dbdir": "/path/to/DB/folder",
"hd_account_id": 0
"enable_hd": true
}
```

Expand Down

0 comments on commit 39a3a46

Please sign in to comment.