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 genesisAddress = crypto.deriveAddress(seed, 0);
  final lastAddressMap = await lastAddressFromAddress([genesisAddress]);

  return lastAddressMap[genesisAddress] ?? '';
}