JavaScript SDK API Reference / Constants
Constants
Public SNS program addresses and protocol constants.
Variables
| Variable | Description |
|---|---|
| CENTRAL_STATE | Alias for the SNS reverse-lookup class account. |
| CUSTOM_BG_TLD | Parent name account for custom-background records. |
| DEFAULT_PYTH_PUSH_PROGRAM | Default Pyth push-oracle program used by SNS registration. |
| METAPLEX_ID | Metaplex Token Metadata program ID. |
| NAME_PROGRAM_ID | The Solana Name Service program ID |
| PYTH_FEEDS | Maps supported payment token mints to legacy Pyth price and product feeds. |
| PYTH_MAPPING_ACC | Legacy Pyth mapping account used by SNS pricing. |
| PYTH_PULL_FEEDS | Maps supported payment token mints to Pyth pull-feed identifiers. |
| REFERRERS | Registered SNS referral account public keys, indexed by the registrar. |
| REGISTER_PROGRAM_ID | The Registry program ID |
| REVERSE_LOOKUP_CLASS | The reverse look up class |
| SNS_HASH_PREFIX | Hash prefix used to derive SNS domain name addresses |
| SNS_ROOT_DOMAIN_ACCOUNT | The .sns TLD |
| SOL_SRS_CLASS | The SRS class for .sol domains |
| SRS_CENTRAL_STATE | The SRS registrar central state |
| SRS_HASH_PREFIX | Hash prefix used to derive SRS domain name addresses |
| TOKENS_SYM_MINT | Maps supported token mint addresses to their display symbols. |
| TWITTER_ROOT_PARENT_REGISTRY_KEY | The .twitter TLD |
| TWITTER_VERIFICATION_AUTHORITY | The .twitter TLD authority |
| USDC_MINT | Mainnet USDC mint address used by SNS registration flows. |
| VAULT_OWNER | Current SNS vault owner account. |
| Legacy SNS vault owner. | |
| WOLVES_COLLECTION_METADATA | Metaplex metadata account for the Wolves collection accepted by registration. |