Hyperliquid — Query a user's referral information
Query a user's referral information with the Hyperliquid API. The request takes a type and a user. Use it for on-chain or crypto market research. Use the data in market research, dashboard views, or scheduled data collection for the relevant markets.
- Selected price
- $0 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
Hyperliquid — Query a user's referral information
Prepare your request, then continue with your agent.
Selected price
$0 / call
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
builderRewardsstringclaimedRewardsstringcumVlmstringreferredBynullreferrerStateobjectdataobjectcodestringnReferralsintegerreferralStatesobject[]cumFeesRewardedToReferrerstringcumRewardedFeesSinceReferredstringcumVlmstringtimeJoinedintegertokenToState((integer | object)[])[]cumFeesRewardedToReferrerstringcumRewardedFeesSinceReferredstringcumVlmstring
userstring
stagestring
rewardHistoryobject[]earnedstringreferralVlmstringtimeintegervlmstring
tokenToState((integer | object)[])[]builderRewardsstringclaimedRewardsstringcumVlmstringunclaimedRewardsstring
unclaimedRewardsstring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
builderRewards?: string;
claimedRewards?: string;
cumVlm?: string;
referredBy?: null;
referrerState?: {
data?: {
code?: string;
nReferrals?: number;
referralStates?: Array<{
cumFeesRewardedToReferrer?: string;
cumRewardedFeesSinceReferred?: string;
cumVlm?: string;
timeJoined?: number;
tokenToState?: Array<Array<number | {
cumFeesRewardedToReferrer?: string;
cumRewardedFeesSinceReferred?: string;
cumVlm?: string;
}>>;
user?: string;
}>;
};
stage?: string;
};
rewardHistory?: Array<{
earned?: string;
referralVlm?: string;
time?: number;
vlm?: string;
}>;
tokenToState?: Array<Array<number | {
builderRewards?: string;
claimedRewards?: string;
cumVlm?: string;
unclaimedRewards?: string;
}>>;
unclaimedRewards?: string;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
hyperliquidCurrent Hyperliquid — Query a user's referral information · POST · View API reference | $0 / call | — | —successP50— |
- Unit price
- $0
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.
Total $0
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/hyperliquid/info/referral- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/hyperliquid/info/referral' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"type": "referral",
"user": "0x677d831aef5328190852e24f13c46cac05f984e7"
}'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
type | JSON request bodybody | string | Yes | Fixed native Info query discriminator. const: "referral" · enum: "referral" |
user | JSON request bodybody | string | Yes | hexadecimal format; e.g. 0x0000000000000000000000000000000000000000. pattern: ^0x[0-9a-fA-F]{40}$ |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Published documentation example. Verify the actual response after an approved call.
{
"builderRewards": "0.0",
"claimedRewards": "1.799226",
"cumVlm": "7049.82",
"referredBy": null,
"referrerState": {
"data": {
"code": "TESTCODE",
"nReferrals": 3,
"referralStates": [
{
"cumFeesRewardedToReferrer": "0.885083",
"cumRewardedFeesSinceReferred": "15.973891",
"cumVlm": "2547365.8799999999",
"timeJoined": 1775271678880,
"tokenToState": [
[
0,
{
"cumFeesRewardedToReferrer": "0.885083",
"cumRewardedFeesSinceReferred": "15.973891",
"cumVlm": "2547365.8799999999"
}
]
],
"user": "0xb6a6123aca000befa2b18fb65e7ec489ee1dde92"
},
{
"cumFeesRewardedToReferrer": "0.00269886",
"cumRewardedFeesSinceReferred": "0.02936907",
"cumVlm": "110.91",
"timeJoined": 1790681474064,
"tokenToState": [
[
0,
{
"cumFeesRewardedToReferrer": "0.00269886",
"cumRewardedFeesSinceReferred": "0.02936907",
"cumVlm": "110.91"
}
]
],
"user": "0xc918b6b40e4e0320d7884d02878437cf7c9caacf"
},
{
"cumFeesRewardedToReferrer": "0.0",
"cumRewardedFeesSinceReferred": "0.0",
"cumVlm": "100307.16",
"timeJoined": 1780974799030,
"tokenToState": [
[
0,
{
"cumFeesRewardedToReferrer": "0.0",
"cumRewardedFeesSinceReferred": "0.0",
"cumVlm": "100307.16"
}
]
],
"user": "0xb6dd0cb09314e66cc42102b7d4eab558b5d773ff"
}
]
},
"stage": "ready"
},
"rewardHistory": [
{
"earned": "0.24564",
"referralVlm": "0.0",
"time": 1686181525632,
"vlm": "3541.88913"
},
{
"earned": "0.024132",
"referralVlm": "0.0",
"time": 1684368297002,
"vlm": "203.10533"
},
{
"earned": "0.249548",
"referralVlm": "0.0",
"time": 1683765303715,
"vlm": "1969.54376"
},
{
"earned": "0.418054",
"referralVlm": "0.0",
"time": 1681349755581,
"vlm": "463.56714"
},
{
"earned": "1.381172",
"referralVlm": "0.0",
"time": 1680662756422,
"vlm": "517.94726"
},
{
"earned": "0.138106",
"referralVlm": "0.0",
"time": 1680662135637,
"vlm": "517.94726"
}
],
"tokenToState": [
[
0,
{
"builderRewards": "0.0",
"claimedRewards": "1.799226",
"cumVlm": "7049.82",
"unclaimedRewards": "1.40710186"
}
]
],
"unclaimedRewards": "1.40710186"
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Hyperliquid — Query a user's referral information
Query a user's referral information with the Hyperliquid API. The request takes a type and a user. Use it for on-chain or crypto market research. Use the data in market research, dashboard views, or scheduled data collection for the relevant markets.
## Available implementations
hyperliquid · Hyperliquid — Query a user's referral information: https://openany.si/markets/apis/capabilities/hyperliquid-query-a-user-s-referral-information?offering=445e22a7-f6ef-472e-913e-eebec9ac1eac · $0 / call
## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/hyperliquid-query-a-user-s-referral-information
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/hyperliquid/info/referral
Price: $0 / call
Provider: hyperliquid
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/hyperliquid/info/referral' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"type": "referral",
"user": "0x677d831aef5328190852e24f13c46cac05f984e7"
}'
```
## API contract
```json
{
"resource_type": "api",
"name": "Hyperliquid — Query a user's referral information",
"endpoint": "https://api.openany.si/v1/agent-apis/hyperliquid/info/referral",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Query a user's referral information Documentation prepared only; runtime not verified.",
"json_schema": {
"additionalProperties": false,
"examples": [
{
"type": "referral",
"user": "0x677d831aef5328190852e24f13c46cac05f984e7"
}
],
"properties": {
"type": {
"const": "referral",
"description": "Fixed native Info query discriminator.",
"enum": [
"referral"
],
"example": "referral",
"type": "string"
},
"user": {
"description": "hexadecimal format; e.g. 0x0000000000000000000000000000000000000000.",
"example": "0x677d831aef5328190852e24f13c46cac05f984e7",
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
}
},
"required": [
"type",
"user"
],
"type": "object"
},
"location": "body",
"name": "body",
"nullable": false,
"pointer": "",
"required": true,
"type": "object"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "0",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Documentation example",
"request": {
"body": {
"type": "referral",
"user": "0x677d831aef5328190852e24f13c46cac05f984e7"
},
"headers": {},
"path": {},
"query": {}
},
"response_body": {
"builderRewards": "0.0",
"claimedRewards": "1.799226",
"cumVlm": "7049.82",
"referredBy": null,
"referrerState": {
"data": {
"code": "TESTCODE",
"nReferrals": 3,
"referralStates": [
{
"cumFeesRewardedToReferrer": "0.885083",
"cumRewardedFeesSinceReferred": "15.973891",
"cumVlm": "2547365.8799999999",
"timeJoined": 1775271678880,
"tokenToState": [
[
0,
{
"cumFeesRewardedToReferrer": "0.885083",
"cumRewardedFeesSinceReferred": "15.973891",
"cumVlm": "2547365.8799999999"
}
]
],
"user": "0xb6a6123aca000befa2b18fb65e7ec489ee1dde92"
},
{
"cumFeesRewardedToReferrer": "0.00269886",
"cumRewardedFeesSinceReferred": "0.02936907",
"cumVlm": "110.91",
"timeJoined": 1790681474064,
"tokenToState": [
[
0,
{
"cumFeesRewardedToReferrer": "0.00269886",
"cumRewardedFeesSinceReferred": "0.02936907",
"cumVlm": "110.91"
}
]
],
"user": "0xc918b6b40e4e0320d7884d02878437cf7c9caacf"
},
{
"cumFeesRewardedToReferrer": "0.0",
"cumRewardedFeesSinceReferred": "0.0",
"cumVlm": "100307.16",
"timeJoined": 1780974799030,
"tokenToState": [
[
0,
{
"cumFeesRewardedToReferrer": "0.0",
"cumRewardedFeesSinceReferred": "0.0",
"cumVlm": "100307.16"
}
]
],
"user": "0xb6dd0cb09314e66cc42102b7d4eab558b5d773ff"
}
]
},
"stage": "ready"
},
"rewardHistory": [
{
"earned": "0.24564",
"referralVlm": "0.0",
"time": 1686181525632,
"vlm": "3541.88913"
},
{
"earned": "0.024132",
"referralVlm": "0.0",
"time": 1684368297002,
"vlm": "203.10533"
},
{
"earned": "0.249548",
"referralVlm": "0.0",
"time": 1683765303715,
"vlm": "1969.54376"
},
{
"earned": "0.418054",
"referralVlm": "0.0",
"time": 1681349755581,
"vlm": "463.56714"
},
{
"earned": "1.381172",
"referralVlm": "0.0",
"time": 1680662756422,
"vlm": "517.94726"
},
{
"earned": "0.138106",
"referralVlm": "0.0",
"time": 1680662135637,
"vlm": "517.94726"
}
],
"tokenToState": [
[
0,
{
"builderRewards": "0.0",
"claimedRewards": "1.799226",
"cumVlm": "7049.82",
"unclaimedRewards": "1.40710186"
}
]
],
"unclaimedRewards": "1.40710186"
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Documentation example
Published documentation example. Verify the actual response after an approved call.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 1
Review these request fields before running. Keep the published provider and request method unchanged.
body- Query a user's referral information Documentation prepared only; runtime not verified.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/hyperliquid/info/referral' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '{ "type": "referral", "user": "0x677d831aef5328190852e24f13c46cac05f984e7" }'Check the response
Sample response · Documented HTTP 200
Sample response{ "builderRewards": "0.0", "claimedRewards": "1.799226", "cumVlm": "7049.82", "referredBy": null, "referrerState": { "data": { "code": "TESTCODE", "nReferrals": 3, "referralStates": [ { "cumFeesRewardedToReferrer": "0.885083", "cumRewardedFeesSinceReferred": "15.973891", "cumVlm": "2547365.8799999999", "timeJoined": 1775271678880, "tokenToState": [ [ 0, { "cumFeesRewardedToReferrer": "0.885083", "cumRewardedFeesSinceReferred": "15.973891", "cumVlm": "2547365.8799999999" } ] ], "user": "0xb6a6123aca000befa2b18fb65e7ec489ee1dde92" }, { "cumFeesRewardedToReferrer": "0.00269886", "cumRewardedFeesSinceReferred": "0.02936907", "cumVlm": "110.91", "timeJoined": 1790681474064, "tokenToState": [ [ 0, { "cumFeesRewardedToReferrer": "0.00269886", "cumRewardedFeesSinceReferred": "0.02936907", "cumVlm": "110.91" } ] ], "user": "0xc918b6b40e4e0320d7884d02878437cf7c9caacf" }, { "cumFeesRewardedToReferrer": "0.0", "cumRewardedFeesSinceReferred": "0.0", "cumVlm": "100307.16", "timeJoined": 1780974799030, "tokenToState": [ [ 0, { "cumFeesRewardedToReferrer": "0.0", "cumRewardedFeesSinceReferred": "0.0", "cumVlm": "100307.16" } ] ], "user": "0xb6dd0cb09314e66cc42102b7d4eab558b5d773ff" } ] }, "stage": "ready" }, "rewardHistory": [ { "earned": "0.24564", "referralVlm": "0.0", "time": 1686181525632, "vlm": "3541.88913" }, { "earned": "0.024132", "referralVlm": "0.0", "time": 1684368297002, "vlm": "203.10533" }, { "earned": "0.249548", "referralVlm": "0.0", "time": 1683765303715, "vlm": "1969.54376" }, { "earned": "0.418054", "referralVlm": "0.0", "time": 1681349755581, "vlm": "463.56714" }, { "earned": "1.381172", "referralVlm": "0.0", "time": 1680662756422, "vlm": "517.94726" }, { "earned": "0.138106", "referralVlm": "0.0", "time": 1680662135637, "vlm": "517.94726" } ], "tokenToState": [ [ 0, { "builderRewards": "0.0", "claimedRewards": "1.799226", "cumVlm": "7049.82", "unclaimedRewards": "1.40710186" } ] ], "unclaimedRewards": "1.40710186" }