JavaScript SDK API Reference / Address / getSnsDomainKeysForOwner
Function: getSnsDomainKeysForOwner()
getSnsDomainKeysForOwner(
connection,wallet):Promise<PublicKey[]>
Defined in: utils/getSnsDomainKeysForOwner.ts:16
Retrieves top-level .sns domain accounts owned by a wallet.
Parameters
connection
Connection
Solana RPC connection
wallet
PublicKey
Wallet to search domain accounts for
Returns
Promise<PublicKey[]>
Domain account public keys.
Example
const keys = await getSnsDomainKeysForOwner(connection, wallet);