getNetworkIdentifier method

Future<void> getNetworkIdentifier()

Implementation

Future<void> getNetworkIdentifier() async {
  final networkList = await networksList();
  networkIdentifier = networkList.networkIdentifiers.singleWhere(
    (rosetta.NetworkIdentifier id) => id.blockchain == 'Internet Computer',
    orElse: () => throw StateError('No identifier found.'),
  );
}