fetch_endpoints method

Future<EndpointsSet> fetch_endpoints()

Requests the list of alternative endpoints from server

Implementation

Future<EndpointsSet> fetch_endpoints() async {
  final res = await _tonCore.request('net.fetch_endpoints', null);
  return EndpointsSet.fromMap(res);
}