Class ANSClient
- Namespace
- Aptos
- Assembly
- Aptos.dll
public class ANSClient
- Inheritance
-
ANSClient
- Inherited Members
Constructors
ANSClient(AptosClient)
public ANSClient(AptosClient client)
Parameters
client
AptosClient
Methods
GetAnsAddress(string)
Gets the ANS address of the given domain and subdomain. If the network is not supported by the ANS resolver, an exception will be thrown.
public Task<AccountAddress?> GetAnsAddress(string name)
Parameters
name
string
Returns
- Task<AccountAddress>
The ANS address of the given domain and subdomain.
GetAnsAddress(string, string?)
Gets the ANS address of the given domain and subdomain. If the network is not supported by the ANS resolver, an exception will be thrown.
public Task<AccountAddress?> GetAnsAddress(string domain, string? subdomain = null)
Parameters
Returns
- Task<AccountAddress>
The ANS address of the given domain and subdomain.
GetAnsName(AccountAddress)
Gets the registered ANS name of the given address. This includes the subdomain of the name.
public Task<string?> GetAnsName(AccountAddress address)
Parameters
address
AccountAddressThe address of the account.
Returns
GetAnsName(string)
Gets the registered ANS name of the given address. This includes the subdomain of the name.
public Task<string?> GetAnsName(string address)
Parameters
address
stringThe address of the account.