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

# Data API integration patterns

> Implement vault discovery, portfolio screens, activity feeds, and withdrawal lifecycle tracking.

[Scalar API reference](https://api.superearn.io/v1/docs) · [Reporting TL;DR: holdings, cost, PnL and returns](https://docs.superearn.io/en/developers/financial-data.md#tldr) · [Data API overview](https://docs.superearn.io/en/developers/data-access.md)

This guide walks through standard integration patterns for applications, client dashboards, and wallet interfaces using the SuperEarn Data API.

For institutional partner accounting, IFRS-grade financial reporting, and audit invariants, see [Balances, cost and returns](https://docs.superearn.io/en/developers/financial-data.md).

## Choose a workflow

| Use case | Read sequence | Result |
| - | - | - |
| **Product list & yields** | [vaults](https://api.superearn.io/v1/docs#tag/vaults/GET/vaults) → [vault](https://api.superearn.io/v1/docs#tag/vaults/GET/vaults/\{vault}) → [apy](https://api.superearn.io/v1/docs#tag/apy/GET/apy) | Active products, asset metadata, and observed trailing yields |
| **Wallet portfolio** | [vaults](https://api.superearn.io/v1/docs#tag/vaults/GET/vaults) → [balances](https://api.superearn.io/v1/docs#tag/balances/GET/balances) | Active position values, remaining cost basis, unrealized PnL, and redemption receivables |
| **Activity stream** | [activity](https://api.superearn.io/v1/docs#tag/accounts/GET/accounts/\{account}/activity) | Historical transaction log of deposits, withdrawals, share transfers, and claims |
| **Withdrawal tracker** | [redemptions](https://api.superearn.io/v1/docs#tag/accounts/GET/accounts/\{account}/redemptions) + [liquidity](https://api.superearn.io/v1/docs#tag/allocations/GET/vaults/\{vault}/liquidity) | Request lifecycle stages, cooldown timer, claimability, and vault liquidity reserves |
| **Allocation breakdown** | [manifest](https://api.superearn.io/v1/docs#tag/catalog/GET/manifest) → [graph](https://api.superearn.io/v1/docs#tag/allocations/GET/vaults/\{vault}/graph) + [allocations](https://api.superearn.io/v1/docs#tag/allocations/GET/vaults/\{vault}/allocations) | Underlying strategy exposures, protocol debt, and venue breakdown |
| **Institutional close** | [earnings](https://api.superearn.io/v1/docs#tag/earnings/GET/earnings) | Periodic opening/closing balances, flows, realized/unrealized PnL, and TWR returns |

## Pattern 1: Vault catalog and market discovery

To display available investment vaults and their current performance:

1. **List all vaults**: Call `GET /v1/vaults` to fetch the catalog of deployed SuperVaults. Filter by `status: "active"` for current deposit targets, but retain inactive vaults for historical portfolio views.
2. **Fetch vault metadata**: Call `GET /v1/vaults/{vault}` to retrieve contract addresses, underlying assets, decimals, and operational state.
3. **Fetch trailing yield**: Call `GET /v1/apy?vault={vault}` to obtain the official trailing 7-day share price APY (`pps_apy`).
4. **Fetch benchmark rates**: Call `GET /v1/market-rates` to compare vault yield against external reference benchmarks (such as Morpho, Aave, and Kaia ecosystem rates).

```bash theme={null}
# Example: Discover active vaults
curl -s "https://api.superearn.io/v1/vaults" | jq '.data[] | {id: .id, name: .name, status: .status}'
```

## Pattern 2: Wallet portfolio screen

To present a complete portfolio view for a connected user wallet:

1. **Query current balances**: Call `GET /v1/balances?account={walletAddress}&at={timestamp}`. `at` is required (e.g. `at=2026-09-01T00:00:00Z`); pass the current time or a specific historical boundary. A request without `at` returns `400`.
2. **Decompose the total balance and share holdings**:
   * **Total managed assets (`totalValue`)**: The combined sum of active positions and pending redemption claims (`positionValue + redemptionReceivable`, `[Unit: asset]`).
   * **Active share balance (`shares`)**: Raw vault LP token balance held by the user (`[Unit: shareToken]`, metadata defined in `shareToken`).
   * **Active position value (`positionValue`)**: Capital actively deployed in the vault earning daily yield (`shares * PPS`, `[Unit: asset]`).
   * **Redemption receivables (`redemptionReceivable`)**: Capital that has undergone a redemption request and is in cooldown or awaiting claim (`[Unit: asset]`). Preserves 100% principal as a fixed non-earning claim.
   * **Total balance identity**:
     ```text theme={null}
     Total Value = Active Position Value + Redemption Receivables
     ```
3. **Display cost and unrealized gain**:
   * Show `costBasis` as the net remaining invested capital (`[Unit: asset]`).
   * Show `unrealizedPnl = positionValue - costBasis` as the unrealized gain on active shares (`[Unit: asset]`).
4. **Preserve quality flags**: Inspect `quality.status`. If historical acquisition evidence is still indexing, `costBasis` and `unrealizedPnl` may be returned as `null` while verified balances remain available. Preserve the `null` status rather than displaying zero.

For exact derivation of share valuation and integer floors, see the [Boundary value equation](https://docs.superearn.io/en/developers/financial-data.md#boundary-value).

## Pattern 3: Transaction and activity stream

To render an account's transaction history:

1. **Call account activity**: Call `GET /v1/accounts/{account}/activity` with the optional filters `type` (`position`, `redemption` or `balance`) and `vault`, and paginate with `limit` (1\~100) and `cursor`. The endpoint has no `start` / `end` time filters; sending them returns `400`.
2. **Classify rows by `type`, then by `operation`**: Every row carries a `type` discriminator equal to the `type` filter value that selects it. `position` and `balance` rows carry an uppercase `operation` field; `redemption` rows have no `operation` and carry `status` instead. There are no `deposit`, `redemption_request`, `claim`, `transfer_in` or `transfer_out` values.

   | `type` (filter and row) | What the row describes | Classifier field | Values |
   | - | - | - | - |
   | `position` | A change in the account's vault share position (`vault`, `shares`) | `operation` | `MINT`, `BURN`, `SEND`, `RECEIVE` |
   | `redemption` | A redemption request and its settlement (`redemptionId`, `assets`, `shares`) | `status` | `pending`, `claimed` |
   | `balance` | A change in the account's balance of a tracked token (`assetId`, `amount`, `balance`, `locked`) | `operation` | `MINT`, `BURN`, `SEND`, `RECEIVE`, `LOCKUP`, `FETCH` |

   `operation` values:

   * `MINT`: New units are minted to the account. On a `position` row this is a deposit that issues vault shares.
   * `BURN`: Units are burned from the account. On a `position` row this is a share burn made directly by the account.
   * `SEND`: Units leave the account in a transfer; `shares` is negative on a `position` row. A redemption submitted through the router appears as a `SEND` of shares to the router together with a `redemption` row.
   * `RECEIVE`: Units arrive in the account in a transfer, including an in-kind custody migration.
   * `LOCKUP` (`balance` only): The account's locked amount changes; `amount` is signed and `locked` shows the result.
   * `FETCH` (`balance` only): A balance snapshot read from the chain when the token is first tracked for the account. It is not a transfer: `amount` is 0 and `transactionHash` is `null`.

   `redemption` rows: `status` is `pending` until settlement and `claimed` afterwards. The claim does not produce a separate row; the same row gains `claimedAt`, `claimTransactionHash` and `receivedAssets`.

   `operation` is published as a nullable string, so handle an unrecognized or `null` value without failing.
3. **Netting rule**: The activity feed exposes transaction-level netting. If multiple operations occur in a single transaction, inspect the net flow to match the user's on-chain balance change.

## Pattern 4: Withdrawal lifecycle tracker

EarnUSDT withdrawals follow the CooldownVault request-and-claim flow below. Fixed-rate withdrawals use AtomicQueue requests and atomic settlement; check the deployment’s API coverage before using the tracker.

```text theme={null}
[1. Request] ──► [2. Pending Cooldown] ──► [3. Claimable] ──► [4. Settled]
  Router           Waiting period             Vault has         Cash paid
  redemption       (100% principal,           sufficient        to user
  submitted        non-earning)               liquidity         wallet
```

| Stage | Trigger / Condition | API Indicator | Key Response Fields (`redemptions[]` / `activity[]`) | Consumer Action |
| - | - | - | - | - |
| **1. Request** | User calls `SuperEarnRouter.redeem` (`CooldownVault`) or `AtomicQueue.safeUpdateAtomicRequest` (`BoringVault`) | Transaction confirmed | `requestId` (`redemptionId`), `requestedAt` (`at`), `transactionHash` | Store the returned `requestId` and request transaction hash |
| **2. Pending** | Request registered in `CooldownVault` or `AtomicQueue` | `status = "pending"` | **`shares`** (pending withdrawal share quantity), **`assets`** (**request-time evaluated underlying value of `shares`**), **`cooldownEndsAt`** (**withdrawal request deadline / cooldown expiry**) | Display pending shares (`shares`), request-time valuation (`assets`), and deadline (`cooldownEndsAt`) |
| **3. Claimable / Awaiting Solve** | `CooldownVault` timer elapsed (`cooldownEndsAt <= now`) & funded, or `AtomicQueue` awaiting solver | `status = "pending"` (`claimability.state = "ready" \| "waiting"`) | `claimability.state`, `claimability.reason`, `cooldownEndsAt` | Check vault liquidity (`/v1/vaults/{vault}/liquidity`); in normal operation keepers/solvers settle automatically |
| **4. Settled** | Keeper/user executes `claim` (`CooldownVault`) or solver executes `redeemSolve` (`AtomicQueue`) | `status = "claimed"` | `claim.assets` (`receivedAssets`), `claim.claimedAt` (`claimedAt`), `claim.transactionHash` (`claimTransactionHash`) | Remove from pending queue; settle into wallet cash (`outflows`) |

**Variable-Rate (`CooldownVault`) vs Fixed-Rate (`BoringVault` + `AtomicQueue`) Comparison & Cautions (`EarnUSDT` · `EarnJPYC`)**

| Dimension | Variable-Rate Vault (`EarnUSDT` 6d) `CooldownVault` (`cooldown-vault-v1`) | Fixed-Rate Vault (shares: 18d; JPYC: 18d, USDT: 6d) `BoringVault` + `AtomicQueue` (`atomic-queue-v1`) |
| - | - | - |
| **Pending withdrawal shares (`data[].shares`)** | `seCDV` cooldown queue shares *(burned root vault shares appear on the same tx's `activity?type=position` `SEND` row)* | Offered `EarnJPYC` / `EarnUSDT` vault shares (`offerAmount`) |
| **Request-time valuation (`data[].assets`)** | `floor(vaultShares × PPS_at_request / 10^decimals)` (locked claim at request block PPS, `USDT` 6d) | `floor(offerAmount × atomicPrice / 10^18)` (request-time `Accountant` rate snapshot, `JPYC` 18d / `USDT` 6d) |
| **Request deadline (`data[].cooldownEndsAt`)** | `requestedAt + cooldownPeriod` (cooldown maturity timestamp, UTC ISO-8601) | `userRequest.deadline` (solver fulfillment deadline, UTC ISO-8601) |
| **Yield accrual while pending** | **Non-earning** — shares burn on request and lock 100% principal as a nominal claim | **Continues accruing yield** — shares stay in the user wallet (transfer-locked) until `redeemSolve` atomic settlement |
| **Balance-sheet caution (`/v1/balances`, `/v1/earnings`)** | Burned pending shares move into `redemptionReceivable` (`totalValue = positionValue + redemptionReceivable`) | Pending shares remain inside wallet `shares` (`positionValue`), so `redemptionReceivable = "0"`. **Never add `/redemptions?status=pending` `assets` on top of `positionValue` (prevents double-counting)** |
| **Final settlement (`status = "claimed"` / `outflows`)** | Settled via `CooldownVault.Withdraw` into `claim.assets` (`receivedAssets`) & `outflows` (check `/v1/vaults/{vault}/liquidity` before manual `claim`) | Settled via solver `AtomicRequestFulfilled` (`redeemSolve`) into `claim.assets` (`receivedAssets`) & `outflows` |

## Pattern 5: Pagination, cursors, and query rules

When iterating through large historical datasets or account histories:

* **Cursor pagination**: All paginated list endpoints (e.g. `/v1/earnings`, `/v1/harvests`, `/v1/accounts/{account}/activity`) return a `page` object with `page.nextCursor` and `page.hasMore`. Pass `page.nextCursor` as the `cursor` query parameter in the subsequent request. `/v1/balances` returns a single snapshot and is not paginated.
* **Empty intermediate pages**: Continue fetching until `page.hasMore` is `false` (`page.nextCursor` is then `null`). Intermediate pages may occasionally contain zero items if non-matching records were filtered internally.
* **Short pages**: On `/v1/earnings` interval queries, a page may contain fewer rows than `limit` because of a server work budget, so always follow `page.nextCursor` until `page.hasMore` is `false` instead of stopping at a short page.
* **Timezones and cutoffs**:
  * Timestamps in query parameters support full ISO-8601 formatting (e.g. `start=2026-09-01T00:00:00+09:00`).
  * `GET /v1/harvests` requires both `start` and `end` as whole-second RFC 3339 timestamps with an explicit offset (e.g. `start=2026-09-01T00:00:00Z`); a date-only value such as `start=2026-09-01` returns `400`.
  * Use `timezone=Asia/Seoul` or specify an offset when requesting calendar intervals (`interval=day` or `interval=month`).
  * Use `cutoff=HH:mm:ss` to set custom local closing hours.

## Pattern 6: Billing & financial reporting queries (`EarnUSDT` and `EarnJPYC`)

> [!NOTE]
>
> EarnJPYC production uses the 18-decimal fixed-rate share token `0x794B606e216c24b6675804fFa081CdDa8586FA59` on Kaia (8217). As checked on November 3, 2026, this contract is **not yet in the production Data API catalog**. The endpoint mappings below apply only after a vault and its requested history are supported. Confirm the exact address, active status, read plan, and coverage before requesting financial reports. Until then, use the [EarnJPYC on-chain integration](https://docs.superearn.io/en/developers/integrate-fixed-rate-vault.md). Do not treat unavailable data as a zero balance.

| Requirement | Canonical endpoint | Query parameters | Key response fields |
| - | - | - | - |
| **Vault share price (`pricePerShare`) — latest & historical** | `GET /v1/vaults/{vault}/state` | Optional `start` & `end` (RFC 3339, both required when paginating), `limit` (1\~100), `cursor` | `pricePerShare.value`, `pricePerShare.baseAssetId`, `pricePerShare.quoteAssetId`, `totalAssets.value`, `totalSupply.value`, `at` |
| **Point-in-time balance, share count & asset valuation** | `GET /v1/balances` | **Required** `at` (ISO-8601); optional `account`, `vault`, `valuation` (`pps` \| `estimated_nav`), `include=reconciliation` | `shares` (`[Unit: shareToken]`), `positionValue` (`[Unit: asset]`), `redemptionReceivable` (`[Unit: asset]`), `totalValue`, `costBasis`, `unrealizedPnl`, `block` |
| **Daily / period open & close valuation, share/asset amounts, flows & TWR** | `GET /v1/earnings` | **Required** `start`, `end`; optional `account`, `vault`, `interval` (`all` \| `hour` \| `day` \| `week` \| `month`), `timezone` (`UTC` \| `Asia/Seoul`), `cutoff` (`HH:mm:ss`), `limit`, `cursor` | `opening` & `closing` (`shares`, `positionValue`, `redemptionReceivable`, `totalValue`, `costBasis`, `unrealizedPnl`, `block`), `inflows`, `outflows`, `pnl`, `realizedPnl`, `unrealizedPnlChange`, `return.periodRate`, `return.apr`, `return.apy` |
| **Current position summary & daily performance series** | `GET /v1/accounts/{account}/positions` `GET /v1/accounts/{account}/performance` | `positions`: optional `vault` `performance`: **required** RFC 3339 `start` & `end` | `positions`: `shares`, `principal`, `value`, `realizedEarnings`, `unrealizedEarnings`, `totalEarnings` `performance`: daily `openingValue`, `closingValue`, `netFlows`, `earnings`, `apr`, `apy` |
| **Deposit, withdrawal, transfer history & pending request valuation / deadline** | `GET /v1/accounts/{account}/activity` `GET /v1/accounts/{account}/redemptions` | Optional `vault`, `type` (`position` \| `redemption` \| `balance`), `status` (`pending` \| `claimed`), `limit` (1\~100), `cursor` | `position` rows (`operation: MINT \| BURN \| SEND \| RECEIVE`, `shares`, `transactionHash`, `blockNumber`, `at`); `redemption` rows (`status`, `shares` = pending withdrawal share quantity, `assets` = **request-time evaluated underlying value**, `cooldownEndsAt` = **withdrawal request deadline / cooldown expiry**, `requestedAt` / `at`, `receivedAssets` / `claim.assets`, `claimedAt`, `claimTransactionHash`) |

### 7-Item Share-Valuation Settlement & Variable vs Fixed-Rate Vault Comparison (`EarnUSDT` · `EarnJPYC`)

For partners settling `EarnJPYC` and `EarnUSDT` using **share-valuation accounting ("equity/share" model)** rather than interest-payout accounting, the following 7 data points map to the same endpoints and fields **when the selected deployment is supported**, across variable-rate (`CooldownVault`) and fixed-rate (`BoringVault` + `AtomicQueue`) vaults:

| # | Required Settlement Item (`EarnJPYC` & `EarnUSDT`) | Canonical Endpoint (`https://api.superearn.io/v1`) | Response JSON Field Path | Variable-Rate (`EarnUSDT` 6d) `CooldownVault` | Fixed-Rate (shares: 18d; JPYC: 18d, USDT: 6d) `BoringVault` + `AtomicQueue` |
| - | - | - | - | - | - |
| **1** | **Held `EarnJPYC` / `EarnUSDT` share quantity** | `GET /v1/balances` `GET /v1/earnings` `GET /v1/accounts/{account}/positions` | `data[].assets[].shares` `opening.shares` / `closing.shares` `data[].shares.value` | Active vault shares (leaves wallet on cooldown entry) | Total wallet shares (includes open `AtomicQueue` `offerAmount` until `redeemSolve`) |
| **2** | **`JPYC` / `USDT` value of held shares** | `GET /v1/balances` `GET /v1/earnings` `GET /v1/vaults/{vault}/state` | `data[].assets[].positionValue` (`totalValue`) `opening/closing.positionValue` `data[].pricePerShare.value` | Confirmed block free-funds PPS valuation (`floor(shares × F / totalSupply)`) | Confirmed block `Accountant.getRateInQuoteSafe` valuation (`floor(shares × rate / 10^18)`) |
| **3** | **Pending withdrawal `EarnJPYC` / `EarnUSDT` share quantity** | `GET /v1/accounts/{account}/redemptions?status=pending` `GET /v1/accounts/{account}/activity?type=redemption` | **`data[].shares.value`** (`data[].shares.assetId`) | `CooldownVault` queue share quantity (`seCDV`) | `AtomicQueue` offered share quantity (`offerAmount`) |
| **4** | **Request-time share valuation (= valuation of Item 3)** | `GET /v1/accounts/{account}/redemptions` `GET /v1/accounts/{account}/activity?type=redemption` | **`data[].assets.value`** (`data[].assets.assetId`) *(Cooldown aggregate: `redemptionReceivable`)* | **Locked value at request block PPS** (`floor(vaultShares × PPS_at_request / 10^decimals)`) | **Value at snapshotted `atomicPrice` (`Accountant` rate)** (`floor(offerAmount × atomicPrice / 10^18)`) |
| **5** | **Withdrawal request deadline** | `GET /v1/accounts/{account}/redemptions` `GET /v1/accounts/{account}/activity?type=redemption` | **`data[].cooldownEndsAt`** *(Request time: `requestedAt` / `at`)* | **Cooldown maturity timestamp** (`requestedAt + cooldownPeriod`) | **Solver fulfillment deadline** (`userRequest.deadline`) |
| **6** | **Daily deposit `JPYC` / `USDT` amount** | `GET /v1/earnings?interval=day&timezone=Asia/Seoul` | **`data[].assets[].inflows`** | Daily deposited `USDT` total | Daily `Teller.Deposit` `JPYC` / `USDT` total |
| **7** | **Daily withdrawal `JPYC` / `USDT` amount** | `GET /v1/earnings?interval=day&timezone=Asia/Seoul` | **`data[].assets[].outflows`** | Daily claimed `CooldownVault.Withdraw` total | Daily settled `AtomicRequestFulfilled` (`redeemSolve`) total |

> **Accounting Caution (Preventing Double-Counting)**: On variable-rate **`CooldownVault`**, shares burn on request and move from `positionValue` into `redemptionReceivable` (`totalValue = positionValue + redemptionReceivable`). On fixed-rate **`BoringVault` (`AtomicQueue`)**, shares stay in wallet `shares` (`positionValue`) and continue accruing yield until `redeemSolve`, so `redemptionReceivable = "0"`. **Never add `/redemptions?status=pending` `data[].assets` on top of `positionValue` on fixed-rate vaults.**

### EarnUSDT request and response examples

#### 1. Point-in-time balances for a supported vault

```bash theme={null}
curl -s "https://api.superearn.io/v1/balances?account=0xa1963b0ad126aca96547b598e50fe2714993af70&vault=eip155:8217:0x2e4e573d86c70688cd97d76bc5ddc1bb265bf5d6&at=2026-10-26T00:00:00Z"
```

#### 2. Daily opening & closing valuation, share/asset amounts, and TWR (`GET /v1/earnings`)

```bash theme={null}
# Daily KST (Asia/Seoul, 00:00:00 cutoff) open & close for EarnUSDT
curl -s "https://api.superearn.io/v1/earnings?account=0xa1963b0ad126aca96547b598e50fe2714993af70&vault=eip155:8217:0x2e4e573d86c70688cd97d76bc5ddc1bb265bf5d6&start=2026-10-25T00:00:00%2B09:00&end=2026-10-26T00:00:00%2B09:00&interval=day&timezone=Asia/Seoul"
```

```json theme={null}
{
  "data": [
    {
      "start": "2026-10-24T15:00:00.000Z",
      "end": "2026-10-25T15:00:00.000Z",
      "assets": [
        {
          "asset": {
            "chainId": 8217,
            "address": "0xd077a400968890eacc75cdc901f0356c943e4fdb",
            "symbol": "USD₮",
            "decimals": 6
          },
          "shareToken": {
            "chainId": 8217,
            "address": "0x2e4e573d86c70688cd97d76bc5ddc1bb265bf5d6",
            "symbol": "EarnUSDT",
            "decimals": 6
          },
          "opening": {
            "shares": "10126861.583279",
            "totalValue": "10599631.122998",
            "positionValue": "10599631.122998",
            "redemptionReceivable": "0",
            "costBasis": "10380597.175757",
            "unrealizedPnl": "219033.947241",
            "block": {
              "number": "230651077",
              "hash": "0x7a3ad40e5c82c6725ea613bd3481f6e2c34c91f9d34d0db670a54fba2998bc47",
              "timestamp": "2026-10-24T14:59:59.000Z"
            }
          },
          "closing": {
            "shares": "10126861.583279",
            "totalValue": "10601884.807002",
            "positionValue": "10601884.807002",
            "redemptionReceivable": "0",
            "costBasis": "10380597.175757",
            "unrealizedPnl": "221287.631245",
            "block": {
              "number": "230737443",
              "hash": "0x8128945f3f043be83bffe74532cfd347e34b7098218b7b223a97e9d0023a25ad",
              "timestamp": "2026-10-25T14:59:59.000Z"
            }
          },
          "inflows": "0",
          "outflows": "0",
          "pnl": "2253.684004",
          "realizedPnl": "0",
          "unrealizedPnlChange": "2253.684004",
          "netTransferredUnrealizedPnl": "0",
          "return": {
            "periodRate": "0.000212619097575026",
            "method": "time_weighted",
            "apr": "0.07760597061488469",
            "apy": "0.080687833765575979",
            "estimated": false
          },
          "quality": {
            "status": "complete",
            "reasons": []
          }
        }
      ]
    }
  ],
  "meta": {
    "scope": {
      "account": "0xa1963b0ad126aca96547b598e50fe2714993af70",
      "vaults": [
        "eip155:8217:0x2e4e573d86c70688cd97d76bc5ddc1bb265bf5d6"
      ]
    },
    "policy": "balances-earnings-v5",
    "valuation": "pps",
    "calendar": {
      "interval": "day",
      "timezone": "Asia/Seoul",
      "cutoff": "00:00:00"
    }
  },
  "page": {
    "hasMore": false,
    "nextCursor": null
  }
}
```

#### 3. Supported-vault activity and withdrawal requests

These requests use EarnUSDT. Follow `page.nextCursor` for complete history and inspect `meta.quality` before using the results in a report.

```bash theme={null}
curl -s "https://api.superearn.io/v1/accounts/0xa1963b0ad126aca96547b598e50fe2714993af70/activity?vault=eip155:8217:0x2e4e573d86c70688cd97d76bc5ddc1bb265bf5d6&type=position&limit=2"
curl -s "https://api.superearn.io/v1/accounts/0xa1963b0ad126aca96547b598e50fe2714993af70/redemptions?vault=eip155:8217:0x2e4e573d86c70688cd97d76bc5ddc1bb265bf5d6&status=pending&limit=5"
```

For a supported fixed-rate deployment, `shares` represents the offered vault shares and `assets` their request-time value. `cooldownEndsAt` represents the settlement deadline; it is not a cooldown maturity. Refer to the withdrawal comparison above and verify the vault's read plan.

## Integration checklist

* [ ] Use `totalValue` (or `positionValue + redemptionReceivable`) to represent a user's complete managed balance.
* [ ] Retain raw integer precision in contract atoms and divide by token decimals ($10^6$ for `USDT`/`EarnUSDT`, $10^{18}$ for `JPYC`/`EarnJPYC` and fixed-rate `BoringVault` shares) only for display.
* [ ] Inspect `quality.status` and `quality.reasons` on every response; preserve `null` values where evidence is pending.
* [ ] Handle cursor-based pagination completely: follow `page.nextCursor` until `page.hasMore` is `false`.
* [ ] Direct users through the appropriate router (`SuperEarnRouter` for variable-yield vaults; `Router` and `AtomicQueue` for fixed-rate vaults).

## Related guides

| Guide | Description |
| - | - |
| [Data API overview](https://docs.superearn.io/en/developers/data-access.md) | Environments, base URLs, integration surfaces, and token decimals |
| [Balances, cost and returns](https://docs.superearn.io/en/developers/financial-data.md) | 4 core audit invariants, pro-rata cost basis, PnL recognition, and return formulas |
| [Valuation and harvest reporting](https://docs.superearn.io/en/developers/accrual-accounting.md) | Vault lockedProfit buffer mechanics, strategy NAV, and harvest allocation |
| [Scalar API reference](https://api.superearn.io/v1/docs) | Interactive schema documentation for all endpoints |


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