Skip to main content

JS Kit SDK API Reference / Domain / getDomainOwner

Function: getDomainOwner()

getDomainOwner(params): Promise<Address>

Defined in: domain/getDomainOwner.ts:40

Retrieves the owner of the specified domain. If the domain is tokenized, the NFT's owner is returned; otherwise, the registry owner is returned.

Parameters

params

GetDomainOwnerParams

Domain owner retrieval parameters

Returns

Promise<Address>

The domain owner address.

Example

const owner = await getDomainOwner({ rpc, domain: "example.sns" });