JavaScript SDK API Reference / NFT / retrieveRecords
Function: retrieveRecords()
retrieveRecords(
connection,owner):Promise<NftRecord[]>
Defined in: nft/retrieveRecords.ts:40
Retrieves active SNS NFT records for tokenized domains owned by a wallet.
Parameters
connection
Connection
Solana RPC connection used to query token and NFT accounts.
owner
PublicKey
Wallet address that owns the tokenized domains.
Returns
Promise<NftRecord[]>
Active NFT records associated with the wallet's tokenized domains.
Example
const records = await retrieveRecords(connection, owner);