Class Ans
- Namespace
- Aptos
- Assembly
- Aptos.dll
public static class Ans
- Inheritance
-
Ans
- Inherited Members
Methods
EnsureValidANSSegment(string)
Ensures that the ANS segment is valid. Throws a ANSInvalidName exception if it is not.
A valid ANS segment is a string between 3 and 63 characters long, and only contains lowercase a-z, 0-9, and hyphens. A segment may not start or end with a hyphen.
public static void EnsureValidANSSegment(string segment)
Parameters
segment
stringdomain or subdomain of a name
Exceptions
GetRouterAddress(NetworkConfig)
public static string? GetRouterAddress(NetworkConfig network)
Parameters
network
NetworkConfig
Returns
ParseAnsName(string)
public static (string domain, string? subdomain) ParseAnsName(string name)
Parameters
name
string