Ans

class Ans(val config: AptosConfig) : Ans

A class to handle all Aptos Name Service (ANS) operations.

Constructors

Link copied to clipboard
constructor(config: AptosConfig)

Properties

Link copied to clipboard

Functions

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

Retrieves the expiration time of a domain or subdomain name.

Link copied to clipboard
open suspend override fun getOwnerAddress(name: String): Result<AccountAddress, AptosSdkError>

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
open suspend override fun getTargetAddress(name: String): Result<AccountAddress, AptosSdkError>

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

Link copied to clipboard

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