AnsClient class

Constructors

AnsClient(Network network, {String? fullNodeEndpoint, String? indexerEndpoint})

Properties

aptosClient AptosClient
latefinal
contractAddress String
latefinal
hashCode int
The hash code for this object.
no setterinherited
indexerClient IndexerClient
latefinal
network Network
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAddressByName(String name) Future<String?>
Returns the target account address for the given name
getPrimaryNameByAddress(String address) Future<String?>
Returns the primary name for the given account address.
getRegistrationForDomainName(String domain) Future<(String?, int)?>
e.g. if name is aptos.apt, domain = aptos
getRegistrationForSubdomainName(String domain, String subdomain) Future<(dynamic, dynamic)?>
e.g. if name is dev.aptos.apt, domain = aptos, subdomain = dev
initReverseLookupRegistry(AptosAccount owner, {BigInt? maxGasAmount, BigInt? gasUnitPrice, BigInt? expireTimestamp}) Future<String>
Initialize reverse lookup for contract owner.
mintAptosName(AptosAccount account, String domainName, {int years = 1, BigInt? maxGasAmount, BigInt? gasUnitPrice, BigInt? expireTimestamp}) Future<String>
Mint a new Aptos name.
mintAptosSubdomain(AptosAccount account, String subdomainName, String domainName, {int? expirationTimestampSeconds, BigInt? maxGasAmount, BigInt? gasUnitPrice, BigInt? expireTimestamp}) Future
Mint a new Aptos Subdomain.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setSubdomainAddress(AptosAccount account, String subdomainName, String domainName, String target, {BigInt? maxGasAmount, BigInt? gasUnitPrice, BigInt? expireTimestamp}) Future<String>
account AptosAccount the owner of the domain name. subdomainName subdomain name to mint. domainName Aptos domain name to mint. target the target address for the subdomain. Return the hash of the pending transaction submitted to the API.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited