Skip to main content

JavaScript SDK API Reference / Address / getSnsNftsForOwner

Function: getSnsNftsForOwner()

getSnsNftsForOwner(connection, owner): Promise<SnsNft[]>

Defined in: utils/getSnsNftsForOwner.ts:38

Retrieves tokenized .sns domains owned by a wallet.

Parameters

connection

Connection

Solana RPC connection

owner

PublicKey

Owner of the tokenized domains

Returns

Promise<SnsNft[]>

Tokenized domain records containing the domain name, its name account public key, and NFT mint public key

Example

const domains = await getSnsNftsForOwner(connection, wallet);