protocolVersion method

Future<Map<String, dynamic>> protocolVersion([
  1. bool all = false
])

Implementation

Future<Map<String, dynamic>> protocolVersion([bool all = false]) async {
  try {
    return await client
        .get(api('network/version', {'key': all ? 'all' : 'current'}));
  } on ExplorerException catch (e) {
    throw ExplorerException(
        code: e.code, message: '{"protocolVersion": "${e.message}"}');
  }
}