deriveAddress method

Address deriveAddress (
  1. int index,
  2. {int accountId: 0,
  3. int change: 0}
)

Wallet should use deriveAddress instead of deriveAddressWithPath.

Implementation

Address deriveAddress(int index, {int accountId = 0, int change = 0}) =>
    deriveAddressWithPath(bip44Path(index, currency.bip44CoinType,
        accountId: accountId, change: change))
      ..accountId = accountId
      ..chainIndex = index;