> ## Documentation Index
> Fetch the complete documentation index at: https://goldrush.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# delegatorHistory | Hyperliquid Info API

> Hyperliquid delegatorHistory: reconstruct the sequence of HYPE staking events behind the totals shown in delegatorSummary.

<CardGroup cols={2}>
  <Card title="Credit Cost"> 1 per call</Card>
  <Card title="Processing"> Realtime</Card>
</CardGroup>

The Hyperliquid info endpoint with `type: "delegatorHistory"` is used to reconstruct the sequence of HYPE staking events behind the totals shown in delegatorSummary.

<Tip>
  Estimate your monthly cost for this API using the [Pricing Calculator](/pricing-calculator?endpoint=%2Fapi-reference%2Fhyperliquid-info%2Fdelegator-history).
</Tip>

<Info>
  * Wire-equal to `POST api.hyperliquid.xyz/info` with `{"type": "delegatorHistory", "user": "..."}`.
  * For totals (delegated, undelegated, pending withdrawal sums), use <a href="https://goldrush.dev/docs/api-reference/hyperliquid/delegator-summary" target="_blank" rel="noopener noreferrer">`delegatorSummary`</a>.
  * For accrued staking and commission rewards, use <a href="https://goldrush.dev/docs/api-reference/hyperliquid/delegator-rewards" target="_blank" rel="noopener noreferrer">`delegatorRewards`</a>.
  * For real-time push of staking events, subscribe to <a href="https://goldrush.dev/docs/api-reference/streaming-api/subscriptions/wallet-activity-stream" target="_blank" rel="noopener noreferrer">`walletTxs`</a> and read <a href="https://goldrush.dev/docs/api-reference/streaming-api/types/hypercore-delegation-event" target="_blank" rel="noopener noreferrer">`HypercoreDelegationEvent`</a> entries.
</Info>

Returns a user’s HYPE staking event history: every delegate, undelegate, staking-account deposit, and unstake withdrawal, ordered by `time`. Use this to reconstruct the sequence behind the totals shown in [delegatorSummary](https://goldrush.dev/docs/api-reference/hyperliquid/delegator-summary).

User-keyed. Each entry carries a `delta` whose discriminator describes the event variant.

## Endpoint

```
POST https://hypercore.goldrushdata.com/info
Authorization: Bearer <GOLDRUSH_API_KEY>
Content-Type: application/json
```

## Request

<ParamField body="type" type="string" required>
  Always `"delegatorHistory"`.
</ParamField>

<ParamField body="user" type="string" required>
  The wallet address (lowercase 0x-prefixed hex).
</ParamField>

### Example

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST https://hypercore.goldrushdata.com/info \
    -H "Authorization: Bearer $GOLDRUSH_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "type": "delegatorHistory",
      "user": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
    }'
  ```

  ```typescript TypeScript theme={null}
  const response = await fetch("https://hypercore.goldrushdata.com/info", {
    method: "POST",
    headers: {
      "Authorization": `Bearer ${process.env.GOLDRUSH_API_KEY}`,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      type: "delegatorHistory",
      user: "0x31ca8395cf837de08b24da3f660e77761dfb974b",
    }),
  });

  const events = await response.json();
  ```

  ```python Python theme={null}
  import os, requests

  response = requests.post(
      "https://hypercore.goldrushdata.com/info",
      headers={"Authorization": f"Bearer {os.environ['GOLDRUSH_API_KEY']}"},
      json={
          "type": "delegatorHistory",
          "user": "0x31ca8395cf837de08b24da3f660e77761dfb974b",
      },
  )

  events = response.json()
  ```
</CodeGroup>

## Response

An array of staking event objects.

```json theme={null}
[
  {
    "time": 1735689600000,
    "hash": "0x6b9c0a4a3d54b0d4d6b1a0c4d8c9e7f2b6e5d3c2a1f0e9d8c7b6a5f4e3d2c1b0a",
    "delta": {
      "delegate": {
        "validator": "0x5ac99df645f3414876c816caa18b2d234024b487",
        "amount": "1000.5",
        "isUndelegate": false
      }
    }
  }
]
```

### Field descriptions

<Note>
  `delta.delegate.amount` is returned as a **decimal string**, preserving upstream precision. Do not parse it as a float.
</Note>

<ResponseField name="time" type="int">Unix timestamp in milliseconds when the event was applied.</ResponseField>
<ResponseField name="hash" type="string">L1 transaction hash that produced the event.</ResponseField>

<ResponseField name="delta" type="object">
  Event-specific payload. The example above shows a `delegate` variant; other variants observed in the wild include `cDeposit` (staking-account deposit) and `withdrawal` (unstake withdrawal). The shape changes per variant.

  <Expandable title="properties for the delegate variant">
    <ResponseField name="delegate.validator" type="string">Validator address the delegation targets.</ResponseField>
    <ResponseField name="delegate.amount" type="string">HYPE amount delegated or undelegated.</ResponseField>
    <ResponseField name="delegate.isUndelegate" type="boolean">`true` for an undelegate, `false` for a delegate.</ResponseField>
  </Expandable>
</ResponseField>

## Related endpoints

<CardGroup cols={2}>
  <Card title="delegatorRewards" href="/api-reference/hyperliquid-info/delegator-rewards">fetch a user’s current HYPE staking position.</Card>
  <Card title="delegatorSummary" href="/api-reference/hyperliquid-info/delegator-summary">get a one-shot snapshot of a user's HYPE staking position for dashboards and portfolio overviews.</Card>
  <Card title="fundingHistory" href="/api-reference/hyperliquid-info/funding-history">fetch a coin’s historical funding rates and premiums over a time window for funding analytics and basis…</Card>
</CardGroup>

*Last reviewed: 2026-06-13*
