Skip to main content

JavaScript SDK API Reference / NFT / retrieveNftOwner

Function: retrieveNftOwner()

retrieveNftOwner(connection, nameAccount): Promise<PublicKey | undefined>

Defined in: nft/retrieveNftOwner.ts:21

Retrieves the owner of a tokenized domain name.

Parameters​

connection​

Connection

Solana RPC connection

nameAccount​

PublicKey

Domain name account public key

Returns​

Promise<PublicKey | undefined>

Tokenized domain owner, or undefined when none exists.

Example​

const owner = await retrieveNftOwner(connection, nameAccount);