Skip to main content

JS Kit SDK API Reference / Address / getSnsDomainsForAddress

Function: getSnsDomainsForAddress()

getSnsDomainsForAddress(params): Promise<GetSnsDomainsForAddressResult[]>

Defined in: address/getSnsDomainsForAddress.ts:64

Retrieves directly registry-owned top-level SNS domains for an address.

Tokenized domains and subdomains are not included. Entries without reverse lookup results are omitted.

Parameters

params

GetSnsDomainsForAddressParams

Domain retrieval parameters

Returns

Promise<GetSnsDomainsForAddressResult[]>

Domain records with names without a TLD suffix and domain addresses.

Example

const domains = await getSnsDomainsForAddress({ rpc, address });