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

# Get supplier earnings history

> Daily supplier trading fees and lending interest, with individual credits and historical coverage.

```json 200 theme={null}
{
  "snapshot": {
    "blockNumber": 200,
    "blockHash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "reportHash": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
  },
  "totals": [
    { "asset": "USDC", "interest": "0.00005", "tradingFees": "0.61", "total": "0.61005" },
    { "asset": "pUSD", "interest": "0", "tradingFees": "0", "total": "0" }
  ],
  "gaps": [],
  "days": [
    {
      "day": "2026-11-05",
      "asset": "USDC",
      "interest": "0.00005",
      "tradingFees": "0.61",
      "total": "0.61005"
    }
  ],
  "credits": [],
  "nextCursor": null
}
```

POST
`/info`

## Request Headers

**Content-Type** `string` *required*

Must be `application/json`

**Authorization** `string`

[Signature](https://docs.notional.xyz/api-reference/signing.md#read-signatures) proving you own `user`. Without it, data is 20
seconds old.

## Request Body

**type** `string` *required*

Must be `"userEarnHistory"`.

**user** `string` *required*

User wallet address.

**startTime** `integer`

Inclusive start of the selected period, in Unix milliseconds.

**endTime** `integer`

Inclusive end of the selected period. Omit both bounds for all available history.

**snapshot** `object`

Pass the entire returned snapshot for every subsequent page and day detail. The initial summary
selects the serving node’s committed head.

**day** `string`

UTC calendar day in YYYY-MM-DD format. Provide asset and snapshot to request individual credits.

**asset** `string`

Supply USDC or pUSD together with day for detail.

**cursor** `string`

Use the opaque nextCursor from the preceding page with the same wallet, period, view, and
snapshot.

**limit** `integer`

Page size from 1 to 100, default 30.

## Response

```json 200 theme={null}
{
  "snapshot": {
    "blockNumber": 200,
    "blockHash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "reportHash": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
  },
  "totals": [
    { "asset": "USDC", "interest": "0.00005", "tradingFees": "0.61", "total": "0.61005" },
    { "asset": "pUSD", "interest": "0", "tradingFees": "0", "total": "0" }
  ],
  "gaps": [],
  "days": [
    {
      "day": "2026-11-05",
      "asset": "USDC",
      "interest": "0.00005",
      "tradingFees": "0.61",
      "total": "0.61005"
    }
  ],
  "credits": [],
  "nextCursor": null
}
```

## Response Fields

**snapshot** `object`

Committed blockNumber and blockHash, plus a reportHash that detects differences in retained
history across replicas.

**totals** `object[]`

Each pool’s native asset, interest, tradingFees, and combined total for the entire selected
period. Amounts are decimal strings.

**gaps** `object[]`

Missing evidence intersecting the selected period. Each entry gives the asset, reason, and
inclusive time bounds in milliseconds (null for an unknown boundary). When gaps exist, the
affected totals cover only verified credits.

**days** `object[]`

Summary rows, newest UTC day first, with an asset and the same amount fields as totals.

**credits** `object[]`

Detail rows, newest first, with a stable id, asset, kind (interest or tradingFee), amount, commit
time in milliseconds, and sourceTransactionId. Credits increase the value of pool shares.

**nextCursor** `string | null`

Present on every response. A null cursor means the selected view has no more pages.

## Retry and refresh

A 409 response means the pinned block or retained earnings evidence changed. Request a new summary
without a snapshot or cursor, then use its returned snapshot for subsequent pages.

A 503 response means this node cannot currently serve the requested history. Retry after the
interval in the Retry-After response header.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.