fromDomain static method

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

Implementation

static Future<KYCService> fromDomain(String domain, {
  http.Client? httpClient,
}) async {

  StellarToml toml = await StellarToml.fromDomain(domain, httpClient: httpClient);
  String? addr = toml.generalInformation.kYCServer;
  if (addr == null) {
    addr = toml.generalInformation.transferServer;
  }
  checkNotNull(addr, "kyc or transfer server not available for domain " + domain);
  return KYCService(addr!, httpClient: httpClient);
}