getVersionInfo method
Version information about the RPC and Captive core. RPC manages its own, pared-down version of Stellar Core optimized for its own subset of needs. See: https://developers.stellar.org/docs/data/rpc/api-reference/methods/getVersionInfo
Implementation
Future<GetVersionInfoResponse> getVersionInfo() async {
JsonRpcMethod getVersionInfo = JsonRpcMethod("getVersionInfo");
dio.Response response = await _dio.post(_serverUrl,
data: json.encode(getVersionInfo),
options: dio.Options(headers: _headers));
if (enableLogging) {
print("getVersionInfo response: $response");
}
return GetVersionInfoResponse.fromJson(response.data);
}