getTargetAddress

abstract suspend fun getTargetAddress(name: String): Option<AccountAddress>

Retrieve the target address of a domain or subdomain name. This is the address the name points to for use on chain. Note, the target address can point to addresses that are not the owner of the name

Parameters

name
  • A string of the name: primary, primary.apt, secondary.primary, secondary.primary.apt, etc.