fromDomain static method
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);
}