Creates a new instance of ReferralVault to interact with referral-related
features in the Aftermath protocol.
Optionalconfig: CallerConfig
Optional caller configuration, including Sui network and access token.
The mutable configuration used for subsequent requests.
Static ReadonlyconstantsContains static configuration relevant to the referral system, if any. Currently empty but can be extended for future needs.
Retrieves the referrer address for a specified referee (user).
An object containing the referee Sui address.
A promise that resolves to either the referrer's SuiAddress or the string "None" if no referrer exists.
StaticapiReturns the canonical Aftermath API host for a Sui network.
To target a custom or local host, pass baseUrl in CallerConfig to the
constructor instead.
The Sui network whose host to return.
The network's HTTPS or local HTTP API host.
StaticdefaultReturns the canonical Sui fullnode URL for a network.
The network whose fullnode URL to return. undefined
defaults to mainnet.
The network's fullnode URL.
The
ReferralVaultclass provides functionality for querying and managing referral information within the Aftermath protocol. It allows you to look up the referrer for a given address.Deprecated
Use
Referralclass instead