fromDomain static method

Future<TransferServerService> fromDomain(
  1. String domain, {
  2. Client? httpClient,
})

Implementation

static Future<TransferServerService> fromDomain(String domain,
    {http.Client? httpClient}) async {
  StellarToml toml =
      await StellarToml.fromDomain(domain, httpClient: httpClient);
  String? transferServer = toml.generalInformation.transferServer;
  checkNotNull(transferServer,
      "transfer server not found in stellar toml of domain " + domain);
  return TransferServerService(transferServer!, httpClient: httpClient);
}