Table of Contents

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

domain string

The domain of the ANS name.

subdomain string

The subdomain of the ANS name.

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 AccountAddress

The address of the account.

Returns

Task<string>

The ANS name of the given address.

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 string

The address of the account.

Returns

Task<string>

The ANS name of the given address.