Skip to main content

JavaScript SDK API Reference / NFT

NFT

Tokenized-domain account, mint, owner, and state APIs.

Enumerations

EnumerationDescription
TagDiscriminator values used by name-tokenizer accounts.

Classes

ClassDescription
NftRecordDeserialized name-tokenizer record linking a name account to its NFT mint.

Interfaces

InterfaceDescription
NftRecordParamsInput for decoding a name-tokenizer record.

Variables

VariableDescription
MINT_PREFIXPDA seed prefix for tokenized SNS domain mints.
NAME_TOKENIZER_IDProgram ID for the SNS name-tokenizer program.

Functions

FunctionDescription
getDomainMintDerives the NFT mint PDA for a tokenized SNS name account.
getRecordFromMintRetrieves NFT records for a domain mint.
retrieveNftOwnerRetrieves the owner of a tokenized domain name.
retrieveNftOwnerV2Retrieves the owner of a tokenized name using the mint's largest token account.
retrieveNftsRetrieves all tokenized domain name accounts.
retrieveRecordsRetrieves active SNS NFT records for tokenized domains owned by a wallet.