# Hyperliquid — Query a user's referral information

Get Hyperliquid Referral Info data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Hyperliquid, pass parameters such as type, user, and retrieve structured data including claimed referral rewards, unclaimed referral rewards, reported builder rewards, cumulative volume context, and reported referrer state for referral panels, and reward context.

Documentation: https://openany.si/hyperliquid/hyperliquid-query-a-user-s-referral-information/445e22a7-f6ef-472e-913e-eebec9ac1eac/
API ID: 445e22a7-f6ef-472e-913e-eebec9ac1eac
Provider: hyperliquid
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/hyperliquid/info/referral
Page update time: 2026-12-03T02:49:34.367Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:33.665Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Hyperliquid Referral Info API

POST type="referral" and user. The response separates claimedRewards, unclaimedRewards, builderRewards and cumVlm from referredBy and referrerState. Keep nullable relationship information separate from reward amounts and token-specific state.

## What You Can Build

- **Referral panels**: Show relationships and reward states for one account.
- **Reward context**: Keep history timestamps and token-specific context with reported amounts.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `claimedRewards` | Claimed referral rewards |
| `unclaimedRewards` | Unclaimed referral rewards |
| `builderRewards` | Reported builder rewards |
| `cumVlm` | Cumulative volume context |
| `referredBy` | Referrer relationship; can be null |
| `referrerState.stage` | Reported referrer state |
| `rewardHistory[].time` | Reward-history timestamp |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Hyperliquid — Query a user's referral information request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "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",
      "description": "Query a user's referral information Documentation prepared only; runtime not verified."
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "builderRewards": {
      "type": "string"
    },
    "claimedRewards": {
      "type": "string"
    },
    "cumVlm": {
      "type": "string"
    },
    "referredBy": {
      "type": "null"
    },
    "referrerState": {
      "type": "object",
      "properties": {
        "data": {
          "type": "object",
          "properties": {
            "code": {
              "type": "string"
            },
            "nReferrals": {
              "type": "integer"
            },
            "referralStates": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "cumFeesRewardedToReferrer": {
                    "type": "string"
                  },
                  "cumRewardedFeesSinceReferred": {
                    "type": "string"
                  },
                  "cumVlm": {
                    "type": "string"
                  },
                  "timeJoined": {
                    "type": "integer"
                  },
                  "tokenToState": {
                    "type": "array",
                    "items": {
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "cumFeesRewardedToReferrer": {
                                "type": "string"
                              },
                              "cumRewardedFeesSinceReferred": {
                                "type": "string"
                              },
                              "cumVlm": {
                                "type": "string"
                              }
                            }
                          }
                        ]
                      }
                    }
                  },
                  "user": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "stage": {
          "type": "string"
        }
      }
    },
    "rewardHistory": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "earned": {
            "type": "string"
          },
          "referralVlm": {
            "type": "string"
          },
          "time": {
            "type": "integer"
          },
          "vlm": {
            "type": "string"
          }
        }
      }
    },
    "tokenToState": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "object",
              "properties": {
                "builderRewards": {
                  "type": "string"
                },
                "claimedRewards": {
                  "type": "string"
                },
                "cumVlm": {
                  "type": "string"
                },
                "unclaimedRewards": {
                  "type": "string"
                }
              }
            }
          ]
        }
      }
    },
    "unclaimedRewards": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Documentation example
```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"
}'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "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
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Does referredBy=null mean all rewards are zero?
No. A missing referrer relationship and reward fields have different meanings. Read each independently.

### Can I combine claimed and unclaimed values as one balance?
Keep them separate unless your application explicitly computes and labels a combined figure. Their field names describe different reward states.

### Does the query claim rewards or set a referral code?
No. This request reads referral information and does not submit a reward claim or referral change.

### Are rewards the OpenAny call charge?
No. The returned values describe Hyperliquid referral and builder context. OpenAny request pricing is separate.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

## Available implementations
- hyperliquid: https://openany.si/hyperliquid/hyperliquid-query-a-user-s-referral-information/445e22a7-f6ef-472e-913e-eebec9ac1eac/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
