fromDomain method

Future<KYCService> fromDomain (
  1. String domain
)

Implementation

static Future<KYCService> fromDomain(String domain) async {
  checkNotNull(domain, "domain cannot be null");
  StellarToml toml = await StellarToml.fromDomain(domain);
  String addr = toml.generalInformation.kYCServer;
  if (addr == null) {
    addr = toml.generalInformation.transferServer;
  }
  return new KYCService(addr);
}