getRuntimeVersion method

Future<RuntimeVersion> getRuntimeVersion({
  1. BlockHash? at,
})

Get the runtime version.

Implementation

Future<RuntimeVersion> getRuntimeVersion({BlockHash? at}) async {
  final List<String> params = at != null ? ['0x${hex.encode(at)}'] : const [];
  final response = await _provider.send('state_getRuntimeVersion', params);
  return RuntimeVersion.fromJson(response.result);
}