Ans
A class to handle all Aptos Name Service (ANS) operations.
Functions
Link copied to clipboard
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
open suspend override fun getPrimaryName(address: AccountAddressInput): Result<String, AptosSdkError>
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
open suspend override fun setTargetAddress(sender: AccountAddress, name: String, address: AccountAddressInput, options: InputGenerateTransactionOptions): SimpleTransaction
Builds a transaction to set the target address for a domain or subdomain name.