JavaScript SDK API Reference / Domain
Domain
Domain resolution, derivation, reverse lookup, and discovery APIs.
Interfaces
| Interface | Description |
|---|---|
| SnsDomainKey | A derived SNS domain account and its parent metadata. |
Type Aliases
| Type Alias | Description |
|---|---|
| ResolveConfig | Controls whether resolution may return program-derived-address owners. |
Functions
| Function | Description |
|---|---|
| findSubdomains | Finds subdomains for a parent domain account. |
| getAllSnsDomains | Retrieves all registered top-level .sns domain accounts. |
| getDomainPriceFromName | Retrieves the domain registration price in USD from a domain name. |
| getSnsDomainKeySync | Derives an SNS namespace account from a TLD-trimmed domain name. |
| resolve | Resolves a full .sns or .sol domain name to its effective target public key. |
| reverseLookup | Performs a reverse lookup for a domain account. |
| reverseLookupBatch | Performs reverse lookups for domain accounts. |
| safeResolve | Resolves a full .sns or .sol domain using the same routing as resolve. |