addNextAddress method

Future<Address> addNextAddress (
  1. {bool load: true,
  2. Account account,
  3. Transaction txn}
)

Grow the pool of Address with Address.state equal AddressState.reserve by one.

Implementation

Future<Address> addNextAddress(
    {bool load = true, Account account, sembast.Transaction txn}) {
  if (!hdWallet) return null;
  account ??= this.account;
  return addAddress(deriveAddress(account.nextIndex, accountId: account.id),
      load: load, txn: txn);
}