networkStatus method

Future<NetworkStatusResponse> networkStatus()

Return /network/status response, describing the current status of the network. @returns {Promise

Implementation

Future<rosetta.NetworkStatusResponse> networkStatus() async {
  assert(networkIdentifier != null, 'Cannot get networkIdentifier.');
  final result = await request(
    '/network/status',
    rosetta.NetworkRequest.fromJson(
      {'network_identifier': networkIdentifier},
    ).toJson(),
  );
  return rosetta.NetworkStatusResponse.fromJson(result);
}