JavaScript SDK API Reference / NFT
NFT
Tokenized-domain account, mint, owner, and state APIs.
Enumerations
| Enumeration | Description |
|---|---|
| Tag | Discriminator values used by name-tokenizer accounts. |
Classes
| Class | Description |
|---|---|
| NftRecord | Deserialized name-tokenizer record linking a name account to its NFT mint. |
Interfaces
| Interface | Description |
|---|---|
| NftRecordParams | Input for decoding a name-tokenizer record. |
Variables
| Variable | Description |
|---|---|
| MINT_PREFIX | PDA seed prefix for tokenized SNS domain mints. |
| NAME_TOKENIZER_ID | Program ID for the SNS name-tokenizer program. |
Functions
| Function | Description |
|---|---|
| getDomainMint | Derives the NFT mint PDA for a tokenized SNS name account. |
| getRecordFromMint | Retrieves NFT records for a domain mint. |
| retrieveNftOwner | Retrieves the owner of a tokenized domain name. |
| retrieveNftOwnerV2 | Retrieves the owner of a tokenized name using the mint's largest token account. |
| retrieveNfts | Retrieves all tokenized domain name accounts. |
| retrieveRecords | Retrieves active SNS NFT records for tokenized domains owned by a wallet. |