lastAddressFromSeed method

Future<String> lastAddressFromSeed(
  1. String seed
)

Get the last address from seed @param {String} seed TransactionChain seed

Implementation

Future<String> lastAddressFromSeed(String seed) async {
  final String genesisAddress = crypto.deriveAddress(seed, 0);
  final Map<String, String> lastAddressMap =
      await lastAddressFromAddress([genesisAddress]);

  return lastAddressMap[genesisAddress] ?? '';
}