Skip to main content

JavaScript SDK API Reference / Address / getMultiplePrimaryDomains

Function: getMultiplePrimaryDomains()

getMultiplePrimaryDomains(connection, wallets): Promise<(string | undefined)[]>

Defined in: primary-domain.ts:171

Retrieves primary domain names for multiple wallets, up to a maximum of 100.

If a wallet does not have a primary domain, the result is undefined.

Parameters

connection

Connection

Solana RPC connection

wallets

PublicKey[]

Wallet public keys

Returns

Promise<(string | undefined)[]>

Primary domain names, or undefined for wallets without one.

Example

const domains = await getMultiplePrimaryDomains(connection, wallets);