Skip to main content

JS Kit SDK API Reference / Utilities

Utilities

Low-level address, serialization, reverse-lookup, and TLD utilities.

Interfaces

InterfaceDescription
DeserializeRecordContentParamsParameters for deserializing record content.
DeserializeReverseParamsParameters for deserializing reverse account data.
GetPythFeedAddressParamsParameters for deriving a Pyth feed address.
GetReverseAddressFromDomainAddressParamsParameters for deriving a reverse lookup address.
ReverseLookupBatchParamsParameters for batch reverse lookup.
ReverseLookupParamsParameters for reverse lookup.
SerializeRecordContentParamsParameters for serializing record content.

Type Aliases

Type AliasDescription
SupportedTldA top-level domain supported by this SDK.

Variables

VariableDescription
SNS_TLDThe Bonfida SNS top-level domain.
SOL_TLDThe Solana Name Service top-level domain.
SUPPORTED_TLDSTLD suffixes accepted by the domain parsing and resolution helpers.

Functions

FunctionDescription
checkAddressOnCurveReturns whether a Solana address represents a valid Ed25519 curve point.
deserializeRecordContentDeserializes record content according to SNS-IP 1.
deserializeReverseDeserializes reverse account data.
getPythFeedAddressDerives the Pyth feed PDA for a shard and price feed.
getReverseAddressDerives the reverse lookup account address for a TLD-trimmed SNS domain.
getReverseAddressFromDomainAddressDerives the reverse lookup account address from a domain address.
getTldReturns the matching TLD from supportedTlds if domain ends with one, or undefined otherwise.
parseSnsTldEnsures domain ends with .sns and strips that suffix.
parseSupportedTldEnsures domain ends with one of the supportedTlds and strips that suffix.
reverseLookupPerforms a reverse lookup for a domain address.
reverseLookupBatchPerforms reverse lookups for domain addresses.
serializeRecordContentSerializes record content according to SNS-IP 1.