Name Service Lookups
Last updated
Was this helpful?
Last updated
Was this helpful?
The SDK provides programmatic access to the VeChain Name Service (VNS) at .
Name Services provide the ability to use human-readable names that point to addresses.
vnsUtils
is available within the network module and can be used with a ThorClient.
After importing and connecting the ThorClient, resolveName
and resolveNames
provide access to resolve single or multiple names. If a name is not known or configured, null
is returned instead of an address.
After importing and connecting the ThorClient, lookupAddress
and lookupAddresses
provide access to resolve single or multiple addresses. If an address has no (valid) primary name, a null
is returned instead of a string.