Ans

interface Ans

Interface for all Aptos Name Service (ANS) operations.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun getExpiration(name: String): Result<Long, AptosSdkError>

Retrieves the expiration time of a domain or subdomain name.

Link copied to clipboard

Retrieves the owner address of a domain or subdomain name.

Link copied to clipboard

Retrieves the primary name for an account, if one is set.

Link copied to clipboard

Retrieves the target address a domain or subdomain name points to.

Link copied to clipboard
abstract suspend fun setTargetAddress(sender: AccountAddress, name: String, address: AccountAddressInput, options: InputGenerateTransactionOptions = InputGenerateTransactionOptions()): SimpleTransaction

Builds a transaction to set the target address for a domain or subdomain name.