lastAddressFromSeed method

Future<String> lastAddressFromSeed(
  1. String seed
)

Get the last address from a seed

Implementation

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

  return lastAddressMap[genesisAddress] ?? '';
}