chainName method

Future<String> chainName()

Returns the human-readable name of the chain.

Implementation

Future<String> chainName() async {
  final response = await _provider.send('chainSpec_v1_chainName', const []);

  if (response.error != null) {
    throw Exception(response.error.toString());
  }

  return response.result as String;
}