fromDomain static method

Future<TransferServerSEP24Service> fromDomain(
  1. String domain
)

Creates an instance of this class by loading the transfer server sep 24 url from the given domain stellar toml file.

Implementation

static Future<TransferServerSEP24Service> fromDomain(String domain) async {
  StellarToml toml = await StellarToml.fromDomain(domain);
  String? addr = toml.generalInformation.transferServerSep24;
  checkNotNull(
      addr, "Transfer server SEP 24 not available for domain " + domain);
  return TransferServerSEP24Service(addr!);
}