Skip to main content

JS Kit SDK API Reference / Domain

Domain

Domain resolution, derivation, records, and subdomain APIs.

Interfaces

InterfaceDescription
GetAllSnsDomainsParamsParameters for retrieving all SNS domains.
GetAllSnsDomainsResultA top-level SNS domain account.
GetDomainOwnerParamsParameters for retrieving a domain owner.
GetDomainRecordOptionsOptions for retrieving a domain record.
GetDomainRecordParamsParameters for retrieving a domain record.
GetDomainRecordResultA retrieved domain record.
GetDomainRecordsOptionsOptions for retrieving domain records.
GetDomainRecordsParamsParameters for retrieving domain records.
GetDomainRecordsResultA retrieved domain record.
GetDomainRecordsVerificationVerification status for a domain record.
GetDomainRecordVerificationVerification status for a domain record.
GetSnsDomainAddressParamsParameters for deriving an SNS domain address.
GetSnsDomainAddressResultA derived SNS domain address.
GetSrsDomainAddressParamsParameters for deriving an SRS domain address.
GetSrsDomainAddressResultA derived SRS domain address.
GetSubdomainsParamsParameters for retrieving subdomains under a parent domain.
GetSubdomainsResultA subdomain and the owner recorded in its name registry.
ResolveParamsParameters for resolving a domain.

Type Aliases

Type AliasDescription
ResolveOptionsControls whether resolution may return program-derived addresses.

Functions

FunctionDescription
getAllSnsDomainsRetrieves all top-level SNS domain accounts.
getDomainOwnerRetrieves the owner of the specified domain. If the domain is tokenized, the NFT's owner is returned; otherwise, the registry owner is returned.
getDomainRecordRetrieves a V2 record under a domain, verifies it, and optionally decodes its content.
getDomainRecordsRetrieves V2 records under a domain, verifies them, and optionally decodes their content.
getSnsDomainAddressDerives the address of a domain, subdomain, or record account.
getSrsDomainAddressDerives the canonical SRS record address for a TLD-trimmed .sol name.
getSubdomainsRetrieves subdomains under a parent domain, including their owners.
resolveResolves a .sns or .sol domain to its target address.
safeResolveResolves a .sns or .sol domain using the same routing as resolve.