Name Service Lookups
The SDK provides programmatic access to the VeChain Name Service (VNS) at vet.domains.
Name Services provide the ability to use human-readable names that point to addresses.
Resolve Names
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.
Lookup Addresses
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.
Last updated