Retrieve comprehensive referral information for a specific user, including referrer details, referral rewards, volume metrics, and referrer state with referred users data.
info endpoint with type: "referral" retrieves comprehensive referral information for a specific user on the Hyperliquid exchange. This endpoint provides detailed data about referral relationships, rewards, volume metrics, and referrer status, enabling thorough analysis of referral program participation and performance.
The example curl call is for the user 0x1442ad477ded1b0028b57621aa7b6f7eadb8f568 that used the AXIOM referral code 0x1cc34f6af34653c515b47a83e1de70ba9b0cda1f. Here’s an example setReferrer transaction 0xaa79d3a0073a73925828041e25e24a012300149a6f622a0727287dafe158fff5.
type (string, required) — The request type. Must be "referral" to retrieve referral information.user (string, required) — Address in 42-character hexadecimal format; e.g. 0x0000000000000000000000000000000000000000.referredBy — Information about who referred this user (if applicable)cumVlm — Cumulative volume traded by this user as a stringunclaimedRewards — Amount of unclaimed referral rewards as a stringclaimedRewards — Amount of claimed referral rewards as a stringbuilderRewards — Builder rewards earned as a stringreferrerState — State information if this user is a referrerrewardHistory — Legacy reward history (now returned in nonFundingLedgerUpdate)referredBy object contains:
Referrer information:
referrer — Address of the user who made the referralcode — Referral code that was used for the referralreferrerState object contains information if the user is acting as a referrer:
Referrer status:
stage — Current stage of the referrer (e.g., “ready”, “pending”)data — Detailed referrer informationcode — This user’s own referral codereferralStates — Array of users referred by this userreferralStates contains:
User identification:
user — Address of the referred usertimeJoined — Timestamp when the user joined via referral (milliseconds)cumVlm — Cumulative volume traded by the referred usercumRewardedFeesSinceReferred — Total fees that generated rewards since referralcumFeesRewardedToReferrer — Total fees rewarded to the referrer from this userreferralStates arrayinfo endpoint with type: "referral" is essential for applications that need to:
The request type. Must be 'referral' to retrieve referral information.
referral Address in 42-character hexadecimal format; e.g. 0x0000000000000000000000000000000000000000.
Successful response with referral information
Information about who referred this user
Cumulative volume traded by this user
Amount of unclaimed referral rewards
Amount of claimed referral rewards
Builder rewards earned
State information if this user is a referrer
Legacy reward history (now returned in nonFundingLedgerUpdate)