Skip to main content

JavaScript SDK API Reference / Constants

Constants

Public SNS program addresses and protocol constants.

Variables

VariableDescription
CENTRAL_STATEAlias for the SNS reverse-lookup class account.
CUSTOM_BG_TLDParent name account for custom-background records.
DEFAULT_PYTH_PUSH_PROGRAMDefault Pyth push-oracle program used by SNS registration.
METAPLEX_IDMetaplex Token Metadata program ID.
NAME_PROGRAM_IDThe Solana Name Service program ID
PYTH_FEEDSMaps supported payment token mints to legacy Pyth price and product feeds.
PYTH_MAPPING_ACCLegacy Pyth mapping account used by SNS pricing.
PYTH_PULL_FEEDSMaps supported payment token mints to Pyth pull-feed identifiers.
REFERRERSRegistered SNS referral account public keys, indexed by the registrar.
REGISTER_PROGRAM_IDThe Registry program ID
REVERSE_LOOKUP_CLASSThe reverse look up class
SNS_HASH_PREFIXHash prefix used to derive SNS domain name addresses
SNS_ROOT_DOMAIN_ACCOUNTThe .sns TLD
SOL_SRS_CLASSThe SRS class for .sol domains
SRS_CENTRAL_STATEThe SRS registrar central state
SRS_HASH_PREFIXHash prefix used to derive SRS domain name addresses
TOKENS_SYM_MINTMaps supported token mint addresses to their display symbols.
TWITTER_ROOT_PARENT_REGISTRY_KEYThe .twitter TLD
TWITTER_VERIFICATION_AUTHORITYThe .twitter TLD authority
USDC_MINTMainnet USDC mint address used by SNS registration flows.
VAULT_OWNERCurrent SNS vault owner account.
VAULT_OWNER_DEPRECATEDLegacy SNS vault owner.
WOLVES_COLLECTION_METADATAMetaplex metadata account for the Wolves collection accepted by registration.