referral
post
/info
Request user referral.
Body
Request user referral.
typeundefined · enumRequiredPossible values:
Type of request.
userstring · min: 42 · max: 42RequiredPattern:
User address.
^0[xX][0-9a-fA-F]+$Responses
200
Referral details for a user.
application/json
422
Failed to deserialize the JSON body into the target type
text/plain
500
Internal Server Error
application/json
post
/infoPOST /info HTTP/1.1
Host: api.hyperliquid.xyz
Content-Type: application/json
Accept: */*
Content-Length: 33
{
"type": "referral",
"user": "text"
}{
"referredBy": {
"referrer": "text",
"code": "text"
},
"cumVlm": "text",
"unclaimedRewards": "text",
"claimedRewards": "text",
"builderRewards": "text",
"referrerState": {
"stage": "ready",
"data": {
"code": "text",
"nReferrals": 1,
"referralStates": [
{
"cumVlm": "text",
"cumRewardedFeesSinceReferred": "text",
"cumFeesRewardedToReferrer": "text",
"timeJoined": 1,
"user": "text",
"tokenToState": [
[]
]
}
]
}
},
"rewardHistory": [
{
"earned": "text",
"vlm": "text",
"referralVlm": "text",
"time": 1
}
],
"tokenToState": [
[]
]
}Last updated