genesisHash method

Future<String> genesisHash()

Returns the hash of the genesis block of the chain.

Returns a hex-encoded block hash string.

Implementation

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

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

  return response.result as String;
}