# REST API

> The read-only DegenHive REST API for vaults, forecasting, data, revenue, stock pools, NFTs and wallets on both chains. No key needed.

Source: https://docs.degenhive.ai/api

The DegenHive REST API is a read-only JSON API over everything the indexer sees on HyperEVM (999) and Robinhood Chain (4663). It needs no API key. Writes happen on-chain, against the contracts.

> [!IMPORTANT]
> These routes go live with the launch release. Until then `api.degenhive.ai` serves the legacy service, and the contracts behind these routes are not deployed. Right after launch, expect empty lists and `404` on detail routes until the indexer catches up.

## Base URLs

| Surface | URL |
|---|---|
| REST | `https://api.degenhive.ai/v1` |
| WebSocket | `wss://api.degenhive.ai/v1/ws` (see [WebSocket](https://docs.degenhive.ai/api/websocket.md)) |
| OpenAPI 3.1 document | `https://api.degenhive.ai/v1/openapi.json` |
| Interactive docs | `https://api.degenhive.ai/v1/docs` |
| Liveness / readiness | `https://api.degenhive.ai/healthz`, `https://api.degenhive.ai/readyz` |

Every path below is relative to `https://api.degenhive.ai/v1`. Generate a typed client from the OpenAPI document rather than copying shapes by hand.

## Quick start

**curl**

```bash
curl -s "https://api.degenhive.ai/v1/vaults?tier=flagship&limit=5"
```

**TypeScript**

```ts
const res = await fetch("https://api.degenhive.ai/v1/vaults?tier=flagship&limit=5");
if (!res.ok) {
  const { error } = await res.json();
  throw new Error(`${error.code}: ${error.message} (${res.headers.get("x-request-id")})`);
}
const { items, next_offset } = await res.json();
```

**Python**

```python
import requests

r = requests.get("https://api.degenhive.ai/v1/vaults", params={"tier": "flagship", "limit": 5})
r.raise_for_status()
page = r.json()
for v in page["items"]:
    print(v["name"], v["share_price"], v["total_assets_usdc"])
```

## Conventions

- **Amounts** are integer strings in base units. Each field's OpenAPI schema states its unit and decimals (`x-unit`, `x-decimals`), and `GET /chains` lists every unit. USDC, USDG and DGV use 6 decimals; share prices and high-water marks are WAD (18 decimals). Fields named `share_price` are already decimal strings.
- **Timestamps** are ISO-8601 UTC. Fields named `day` are unix day numbers (seconds since epoch divided by 86,400).
- **Addresses and hashes** are lowercase `0x` hex. The API accepts any case and answers `400 invalid_address` for a malformed address.
- **Chains.** Routes that exist on both chains take `chain=robinhood` or `chain=hyperliquid` (`hyperevm` and numeric chain ids also work). NFT routes name the collection in the path: `stingvestors` (Robinhood) or `fangvestors` (HyperEVM).
- **Pagination.** Lists take `limit` (default 50, max 500) and `offset`. They return `items` and `next_offset`, which is `null` on the last page. Chain-scoped lists also return `chain` and `chain_id`.

`List envelope`

```json
{
  "chain": "hyperliquid",
  "chain_id": 999,
  "limit": 50,
  "offset": 0,
  "next_offset": 50,
  "items": []
}
```

## Rate limits

Each client IP gets 300 requests per sliding 60-second window. Every response carries `x-ratelimit-limit` and `x-ratelimit-remaining`. Past the limit the API answers `429` with a `Retry-After` header in seconds and the same value in `error.details.retry_after_secs`. Wait that long before you retry.

`/healthz`, `/readyz` and `/metrics` are not rate-limited. Requests time out after 30 seconds and bodies are capped at 1 MiB.

## Errors

Every error, including `404` for an unknown route and `429`, uses one envelope:

`Error envelope`

```json
{
  "error": {
    "code": "invalid_parameter",
    "message": "tier must be one of: flagship, institutional, community_arena",
    "details": null
  }
}
```

| Status | Typical `code` | When |
|---|---|---|
| 400 | `invalid_parameter`, `invalid_address`, `invalid_timestamp`, `invalid_range`, `bad_request` | A query or path value is malformed or out of range |
| 404 | `not_found` or `<thing>_not_found` | The route or the object does not exist |
| 408 | `request_timeout` | The request ran past 30 seconds |
| 409 | `duplicate_record` and route-specific codes | The write conflicts with stored state (NFT listings only) |
| 429 | `rate_limited` | Over 300 requests in 60 seconds |
| 503 | `database_unavailable` and others | A backing service is down; `Retry-After: 5` |
| 500 | `internal_error` | Unexpected failure |

Every response carries an `x-request-id` header. Send your own `x-request-id` and the API echoes it; otherwise it assigns a UUID. Quote it when you report a problem.

## CORS and caching

CORS covers `GET`, `POST`, `OPTIONS` and `HEAD` with any request header, for an allowlist of origins set by the operator (the DegenHive sites in production). Scripts, servers and agents are not affected by CORS. If a page on your own origin needs the data, fetch it from your server. Allowed browser code can read the `ETag`, `Retry-After`, `x-ratelimit-limit`, `x-ratelimit-remaining` and `x-request-id` response headers.

NFT metadata responses send `Cache-Control: public, max-age=300` and an `ETag`. NFT and character images send `Cache-Control: public, max-age=86400`. JSON data routes are computed per request from the indexer; poll them no faster than you need, or use the [WebSocket](https://docs.degenhive.ai/api/websocket.md) for live updates.

## Protocol

`GET https://api.degenhive.ai/v1/chains`

Both chains with chain ids, quote assets, the NFT collection of each, the indexer head block and every unit used by amount fields.

`Response (trimmed)`

```json
{
  "network": "mainnet",
  "items": [
    { "chain": "robinhood", "chain_id": 4663, "testnet": false, "quote_asset": "usdg", "quote_decimals": 6, "dgv_token": null, "nft_collection": "stingvestors", "indexer_head_block": 128410233 },
    { "chain": "hyperliquid", "chain_id": 999, "testnet": false, "quote_asset": "usdc", "quote_decimals": 6, "dgv_token": null, "nft_collection": "fangvestors", "indexer_head_block": 21004410 }
  ],
  "units": [{ "unit": "USDC", "decimals": 6, "description": "USDC amount" }]
}
```

`GET https://api.degenhive.ai/v1/protocol/deployments`

Contract addresses per chain from the deployment manifest, plus token addresses and the HyperCore system addresses. Undeployed contracts return `"address": null`. Query: `chain` (omit for both). See [Networks & status](https://docs.degenhive.ai/network.md#read-addresses-programmatically) for an example.

`GET https://api.degenhive.ai/v1/protocol/contracts`

Every indexed contract, including vaults, engines and books found at runtime. Query: `chain` (required), `role` (a manifest name such as `HyperVault`, `HyperPerpEngine` or `BookVault`), `parent` (the vault of an engine, the hook of a book), `limit`, `offset`.

`GET https://api.degenhive.ai/v1/protocol/config`

The settings of one chain: fee splits, caps, tier bounds, guard policy, `BookTerms`, CrowdPay and registry settings. Returns contract defaults until the indexer has read the chain. Query: `chain` (required).

`GET https://api.degenhive.ai/v1/protocol/events`

The decoded event archive: every indexed log with its arguments as JSON (integers as decimal strings). Query: `chain` (required), `address`, `event`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/protocol/reconcile`

The indexer's reconciliation reports: each check of indexed state against the chain, per chain. Query: `chain` (omit for both).

`GET https://api.degenhive.ai/v1/prices`

Latest USD prices. Query: `assets`, a comma-separated list of asset keys: `usdg`, `usdc`, `dgv`, `erc20:<address>` or `hl:<assetId>`. Defaults to `usdg,usdc,dgv`.

`GET https://api.degenhive.ai/v1/prices/:asset_key`

One-minute USD price history for one asset. Query: `from`, `to` (ISO-8601; default the last 24 hours), `limit` (default 1,440, max 10,000).

## Vaults and engines

Hyperliquid quant vaults: each is a `HyperVault` plus its `HyperPerpEngine`. See [Vaults overview](https://docs.degenhive.ai/vaults.md).

`GET https://api.degenhive.ai/v1/vaults`

Vaults with tier, TVL, share price, high-water mark, fees, manager, status and annualized returns (`apy_7d`, `apy_30d`, `apy_inception`, where 0.12 means 12%). Query: `tier` (`flagship`, `institutional`, `community_arena`), `status` (`active`, `winding_down`, `wound_down`), `manager`, `creator`, `sort` (`tvl` default, `newest`, `apy_30d`), `limit`, `offset`.

`One item (trimmed)`

```json
{
  "vault": "0x…",
  "engine": "0x…",
  "name": "DegenHive Flagship",
  "tier": "flagship",
  "status": "active",
  "is_flagship": true,
  "max_gross_bps": 25000,
  "max_net_exposure_bps": 5000,
  "max_daily_loss_bps": 300,
  "max_drawdown_bps": 0,
  "mgmt_fee_bps": 100,
  "perf_fee_bps": 2500,
  "forecast_job_id": 1,
  "forecast_share_bps": 4000,
  "price_per_share": "1042300000000000000",
  "high_water_mark": "1042300000000000000",
  "share_price": "1.0423",
  "total_assets_usdc": "1250000000000",
  "total_pending_deposits_usdc": "15000000000",
  "roll_day": 20791,
  "last_rolled_at": "2026-12-04T00:02:11Z"
}
```

Values are illustrative.

`GET https://api.degenhive.ai/v1/vaults/:vault`

One vault with its engine state, last roll, fee policy and the forecast job it funds.

`GET https://api.degenhive.ai/v1/vaults/:vault/rolls`

Roll history, newest first. Query: `limit`, `offset`.

`GET https://api.degenhive.ai/v1/vaults/:vault/series`

NAV and PnL at each roll, oldest first: share price, high-water mark, NAV before and after fees, PnL, fees, deposits, withdrawals and return since the first point. Query: `from_day`, `to_day`, `limit` (default 365, max 500).

`GET https://api.degenhive.ai/v1/vaults/:vault/withdraw-epochs`

Settled redemption epochs and what each paid. Query: `limit`, `offset`.

`GET https://api.degenhive.ai/v1/vaults/:vault/nav`

Live NAV snapshots between rolls. Query: `from`, `to` (ISO-8601; default the last 7 days), `bucket` (seconds; one snapshot per bucket), `limit` (default 1,000, max 5,000).

`GET https://api.degenhive.ai/v1/vaults/:vault/events`

Vault activity: deposits and redemptions queued, cancelled and claimed, rolls, fee policy and settings changes. Query: `kind`, `account`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/vaults/:vault/holders`

Positions in the vault, largest first. Query: `limit`, `offset`.

`GET https://api.degenhive.ai/v1/vaults/:vault/positions/:account`

One account in one vault: shares, value in USDC, queued deposit and redemption, and claimable USDC.

**curl**

```bash
curl -s "https://api.degenhive.ai/v1/vaults/$VAULT/positions/$ACCOUNT"
```

**TypeScript**

```ts
const pos = await fetch(`https://api.degenhive.ai/v1/vaults/${VAULT}/positions/${ACCOUNT}`).then((r) => r.json());
const claimable = BigInt(pos.claimable_usdc); // 6 decimals
```

**Python**

```python
pos = requests.get(f"https://api.degenhive.ai/v1/vaults/{VAULT}/positions/{ACCOUNT}").json()
claimable = int(pos["claimable_usdc"]) / 1e6
```

`GET https://api.degenhive.ai/v1/vaults/:vault/fee-policy`

Current fees, the pending timelocked fee policy (with `valid_at` and `ready`), the high-water mark and the manager's deferred fees.

`GET https://api.degenhive.ai/v1/vaults/:vault/engine`

Engine state: risk parameters and DNA, day stops, drawdown latch, bridge balances, open positions, resting orders and margin per perp dex.

`GET https://api.degenhive.ai/v1/vaults/:vault/engine/orders`

Orders dispatched to and cancelled on HyperCore. Query: `asset_id`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/vaults/:vault/engine/events`

Margin moves, bridging, stops, flattening and deleveraging. Query: `kind`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/vaults/:vault/engine/fills`

HyperCore fills of the engine's account. Query: `since` (ISO-8601), `limit`, `offset`.

`GET https://api.degenhive.ai/v1/vaults/markets`

The asset universe (HyperCore assets with their tier and listing state) and the known perp dexes.

`GET https://api.degenhive.ai/v1/vaults/config-accounts`

The vault-creator whitelist and per-manager caps from `HyperVaultConfig`. Query: `kind` (`creator_whitelist`, `manager_cap`), `limit`, `offset`.

## Forecasting

Jobs and rounds from `HyperSignalBook`. Forecasts themselves never go on-chain, so the API serves rounds, pots and payouts, not individual forecasts. See [Jobs & rounds](https://docs.degenhive.ai/forecasters/jobs-and-rounds.md).

`GET https://api.degenhive.ai/v1/forecasting/jobs`

Forecast jobs. Job 1 is the Flagship job. Query: `vault`, `active`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/forecasting/jobs/:job_id`

One job with its latest round, its latest CrowdPay day and its whitelist size.

**curl**

```bash
curl -s "https://api.degenhive.ai/v1/forecasting/jobs/1"
```

**TypeScript**

```ts
const { job, latest_round } = await fetch("https://api.degenhive.ai/v1/forecasting/jobs/1").then((r) => r.json());
```

**Python**

```python
detail = requests.get("https://api.degenhive.ai/v1/forecasting/jobs/1").json()
round_ = detail["latest_round"]
```

`Response (trimmed)`

```json
{
  "job": {
    "job_id": 1,
    "vault": "0x…",
    "verified": true,
    "horizon_secs": 14400,
    "cadence_secs": 3600,
    "spec_uri": "ar://…",
    "active": true,
    "min_bond_usdc": "100000000",
    "whitelist_only": false,
    "round_count": 412
  },
  "latest_round": {
    "round_id": 412,
    "poster": "0x…",
    "horizon_secs": 14400,
    "regime_storm_bps": 1200,
    "forecaster_count": 57,
    "forecasts_root": "0x…",
    "expires_at": "2026-12-04T16:00:00Z",
    "asset_ids": [0, 1, 110004],
    "target_weights_bps": [1500, -800, 300]
  },
  "latest_day": { "day": 20791, "status": "open", "pot_usdc": "4210000000" },
  "whitelist_count": 0
}
```

`GET https://api.degenhive.ai/v1/forecasting/jobs/:job_id/rounds`

Posted rounds, newest first. Query: `limit`, `offset`.

`GET https://api.degenhive.ai/v1/forecasting/jobs/:job_id/whitelist`

The job's forecaster whitelist. Query: `limit`, `offset`.

## CrowdPay

Pots, payouts, bonds and slashes from `HyperCrowdPay`. See [Bonds & pay](https://docs.degenhive.ai/forecasters/bonds-and-pay.md).

`GET https://api.degenhive.ai/v1/forecasting/jobs/:job_id/days`

The job's daily pots, newest first: funding, commit, challenge window, veto, payout progress and reclaim. Query: `status` (`open`, `rolled`, `committed`, `paying`, `paid`, `vetoed`, `reclaimed`), `limit`, `offset`.

`GET https://api.degenhive.ai/v1/forecasting/jobs/:job_id/days/:day`

One day with its committed payout chunks.

`GET https://api.degenhive.ai/v1/forecasting/pot-events`

Pots funded, rolled and reclaimed. Query: `job_id`, `kind` (`funded`, `rolled`, `reclaimed`), `limit`, `offset`.

`GET https://api.degenhive.ai/v1/forecasting/payouts`

Forecaster payouts, each split into the immediate part and the probation part. Query: `job_id`, `forecaster`, `day`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/forecasting/forecasters`

Forecasters with bonds, probation balances and totals. Query: `sort` (`paid` default, `bond`, `days`), `limit`, `offset`.

`GET https://api.degenhive.ai/v1/forecasting/forecasters/:account`

One forecaster: active and unstaking bonds, unstake times, probation, totals paid and slashed, agent key, recent payouts, recent slashes and whitelisted jobs.

`GET https://api.degenhive.ai/v1/forecasting/forecasters/:account/events`

Bond, probation and agent-key activity. Query: `kind`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/forecasting/leaderboard`

Forecasters ranked by USDC paid. Query: `job_id`, `days` (window; omit for all time), `limit` (default 100, max 500).

**curl**

```bash
curl -s "https://api.degenhive.ai/v1/forecasting/leaderboard?job_id=1&days=30&limit=10"
```

**TypeScript**

```ts
const url = new URL("https://api.degenhive.ai/v1/forecasting/leaderboard");
url.search = new URLSearchParams({ job_id: "1", days: "30", limit: "10" }).toString();
const { items } = await fetch(url).then((r) => r.json());
```

**Python**

```python
board = requests.get(
    "https://api.degenhive.ai/v1/forecasting/leaderboard",
    params={"job_id": 1, "days": 30, "limit": 10},
).json()
```

`Response (trimmed)`

```json
{
  "job_id": 1,
  "days": 30,
  "items": [
    {
      "rank": 1,
      "account": "0x…",
      "paid_usdc": "1840250000",
      "paid_dgv": "0",
      "days_paid": 27,
      "last_day": 20791,
      "bond_usdc": "500000000",
      "bond_dgv": "0",
      "recent_slash_bps": 0
    }
  ]
}
```

`GET https://api.degenhive.ai/v1/forecasting/slashes`

Waterfall slashes. Query: `account`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/forecasting/slash-proposals`

Slash proposals and how each was resolved. Query: `job_id`, `resolved`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/forecasting/allowed-vaults`

Vault allowlists of `HyperSignalBook` or `DataProviderRegistry`. Query: `registry` (`signal_book` default, `data_registry`).

## Data providers

Feeds, subscriptions and royalties from `DataProviderRegistry`. See [Data marketplace](https://docs.degenhive.ai/data.md).

`GET https://api.degenhive.ai/v1/data/providers`

Providers with fee, manager share, prepaid limit, approval rule, metadata URI, badge and totals. Query: `active`, `owner`, `badge` (`unverified`, `verified`, `flagship_bootstrap`), `limit`, `offset`.

`GET https://api.degenhive.ai/v1/data/providers/:provider_id`

One provider with its vault approvals and live subscription count.

`GET https://api.degenhive.ai/v1/data/subscriptions`

Subscriptions with paid-until time, locked terms, escrow and settlement totals. Query: `vault`, `provider_id`, `active`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/data/royalties`

Per-vault royalty settlements. Query: `vault`, `provider_id`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/data/events`

Marketplace activity: registrations, approvals, subscriptions, cancellations, royalties, claims and refunds. Query: `provider_id`, `vault`, `account`, `limit`, `offset`.

## Revenue

`HyperRevenueRouter` lanes and flows. See [Revenue router](https://docs.degenhive.ai/revenue.md).

`GET https://api.degenhive.ai/v1/revenue`

Router state with lane splits and lifetime totals, the buyback and locker lanes (reserve, releasable, scheduled, end of the drip), today's revenue and 7-day and 30-day counted revenue.

`Response (trimmed)`

```json
{
  "router": { "ops_bps": 3167, "buyback_bps": 3167, "locker_bps": 3166, "nft_bps": 500, "total_revenue_usdc": "182400000000" },
  "lanes": [
    { "lane_name": "buyback", "active_at": null, "paused": false, "horizon_secs": 7776000, "reserve_usdc": "57766080000", "releasable_usdc": "0" },
    { "lane_name": "locker", "active_at": null, "paused": false, "horizon_secs": 2592000, "reserve_usdc": "57747840000", "releasable_usdc": "0" }
  ],
  "today": { "day": 20791, "revenue_usdc": "2140000000", "to_ops_usdc": "677738000" },
  "last_7d_usdc": "14980000000",
  "last_30d_usdc": "61200000000"
}
```

`active_at` stays `null` until the lane is activated at token launch.

`GET https://api.degenhive.ai/v1/revenue/daily`

Revenue per UTC day, newest first, split by lane, with uncounted inflows shown apart. Query: `from_day`, `to_day`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/revenue/events`

Recent router flows: revenue in, lane payouts, drips and releases. Query: `kind`, `lane` (`buyback`, `locker`), `counterparty`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/revenue/sources`

Revenue by payer, with whether each payer counts toward daily revenue. Query: `limit`, `offset`.

`GET https://api.degenhive.ai/v1/revenue/vault-fees`

Vault fee routing events from `HyperVaultFeeRouter`. Query: `vault`, `recipient`, `kind`, `limit`, `offset`.

## Stock pools and books

Robinhood Chain: `MakerHook` pools, `BookVault` books, `MakerPilot` and `HiveFund`. A `:pool` is the pool id (`0x` bytes32) or the stock token address. See [PropAMM overview](https://docs.degenhive.ai/pools.md).

`GET https://api.degenhive.ai/v1/maker/pools`

One pool per stock: fair tick and its freshness, ask and bid fees, layout, idle inventory, breaker state, price, liquidity, swap count and USDG volume. Query: `limit`, `offset`.

`GET https://api.degenhive.ai/v1/maker/pools/:pool`

One pool with its book, recent fair ticks and the last pilot step.

`GET https://api.degenhive.ai/v1/maker/pools/:pool/events`

Pool events. Query: `kind`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/maker/pools/:pool/fair-ticks`

Fair-tick history. Query: `limit`, `offset`.

`GET https://api.degenhive.ai/v1/maker/pools/:pool/pilot-steps`

`MakerPilot` steps on the pool. Query: `limit`, `offset`.

`GET https://api.degenhive.ai/v1/maker/pools/:pool/candles`

Hourly candles with prices in USDG per whole stock token. Query: `from`, `to` (default the last 7 days), `limit` (default 500, max 2,000).

`GET https://api.degenhive.ai/v1/maker/swaps`

Swaps with the fee breakdown in pips. Query: `pool_id`, `account`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/maker/pilot`

The `MakerPilot` policy and the last plan per pool.

`GET https://api.degenhive.ai/v1/books`

Books with pool, stock, deposit cap, share price, principal, alpha high-water mark and fees paid. Query: `pool_id`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/books/:book`

One book with its pool and last roll.

`GET https://api.degenhive.ai/v1/books/:book/rolls`

Roll history. Query: `limit`, `offset`.

`GET https://api.degenhive.ai/v1/books/:book/series`

NAV series from the rolls. Query: `from_day`, `to_day`, `limit`.

`GET https://api.degenhive.ai/v1/books/:book/nav`

Live book value snapshots between rolls. Query: `from`, `to`, `bucket`, `limit`, as for vaults.

`GET https://api.degenhive.ai/v1/books/:book/events`

Book activity. Query: `kind`, `account`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/books/:book/fees`

Fees paid, fees sent to the Stingvestors pot and fees deferred. Query: `limit`, `offset`.

`GET https://api.degenhive.ai/v1/books/:book/holders`

Positions, largest first. Query: `limit`, `offset`.

`GET https://api.degenhive.ai/v1/books/:book/positions/:account`

One account in one book: shares, value, queued requests and what it is owed.

`GET https://api.degenhive.ai/v1/hive-fund`

`HiveFund` state and its allocation per book.

`GET https://api.degenhive.ai/v1/hive-fund/events`

`HiveFund` activity. Query: `vault` (a book), `kind`, `limit`, `offset`.

## NFTs

Stingvestors and Fangvestors, their `VestorPot` and their curve sale. `:collection` is `stingvestors` or `fangvestors`. See [Stingvestors & Fangvestors](https://docs.degenhive.ai/nfts.md).

`GET https://api.degenhive.ai/v1/nfts`

Both collections with pot and curve.

`GET https://api.degenhive.ai/v1/nfts/:collection`

Collection stats: minted, burned, live, holders, curve price, pot balance and accrued value per NFT.

`Response (trimmed)`

```json
{
  "chain": "robinhood",
  "chain_id": 4663,
  "kind": "stingvestors",
  "max_supply": 5100,
  "minted": 1240,
  "burned": 12,
  "live": 1228,
  "holder_count": 611,
  "pot_asset_symbol": "USDG",
  "pot_decimals": 6,
  "pot_balance": "48200000000",
  "accrued_per_seat": "39250814",
  "curve_price": "12980000"
}
```

`GET https://api.degenhive.ai/v1/nfts/:collection/tokens`

Tokens with accrued pot value. Query: `owner`, `burned`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/nfts/:collection/tokens/:token_id`

One token: owner, mint price, accrued pot value and whether it was burned and redeemed.

`GET https://api.degenhive.ai/v1/nfts/:collection/tokens/:token_id/transfers`

Transfers of one token. Query: `limit`, `offset`.

`GET https://api.degenhive.ai/v1/nfts/:collection/owners/:address`

Tokens one owner holds, with the total accrued value.

`GET https://api.degenhive.ai/v1/nfts/:collection/pot/events`

Pot history: flushes, diversions, seats opened and excluded, redemptions and owed payments. Query: `kind`, `token_id`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/nfts/:collection/pot/index`

The pot index after each flush: the cumulative amount per NFT, what the flush credited and how many NFTs shared it. Query: `from`, `to`, `limit`.

`GET https://api.degenhive.ai/v1/nfts/:collection/mints`

Curve mints. Query: `buyer`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/nfts/:collection/sales`

Secondary sales. Query: `token_id`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/nfts/:collection/listings`

Seaport listings. Query: `status` (`active` default, `filled`, `cancelled`, `expired`, `all`), `seller`, `token_id`, `limit`, `offset`.

> [!NOTE]
> Two `POST` routes back the app's marketplace: `POST /nfts/:collection/listings` stores a signed Seaport listing, and `POST /nfts/:collection/listings/:order_hash/fulfillment` returns the Seaport call that buys one. They are the only writes in the API. Their request schemas are in the OpenAPI document.

`GET https://api.degenhive.ai/v1/media/stingvestors/:id`

ERC-721 metadata of a Stingvestor. `GET /media/fangvestors/:id` serves Fangvestors. Append `/image` for a `302` redirect to the image.

## Governance

Timelocks, proxies, upgrades, pauses and roles on both chains. Query `chain` is optional on each (omit for both).

`GET https://api.degenhive.ai/v1/governance/timelocks`

Timelocked changes with their kind, payload, `valid_at` and status. Query: `status` (`pending` default, `accepted`, `revoked`, `all`), `contract`, `kind`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/governance/proxies`

Proxies with implementation, code hash, upgrade delay, frozen flag and any pending upgrade. Query: `pending`, `frozen`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/governance/upgrades`

Proxies with a pending upgrade.

`GET https://api.degenhive.ai/v1/governance/pauses`

Pause domains, frozen setters and other paused switches.

`GET https://api.degenhive.ai/v1/governance/roles`

Role holders and pending transfers. Query: `contract`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/governance/events`

Governance events. Query: `contract`, `target`, `kind`, `limit`, `offset`.

## Wallets

One wallet across both chains.

`GET https://api.degenhive.ai/v1/wallets/:address/portfolio`

Vault and book positions with values, NFTs with accrued value, forecaster bonds and payouts, manager fees owed and data refunds owed. After token launch it also returns DGV balance, lock, locker rewards and depositor rewards.

**curl**

```bash
curl -s "https://api.degenhive.ai/v1/wallets/$ADDRESS/portfolio"
```

**TypeScript**

```ts
const p = await fetch(`https://api.degenhive.ai/v1/wallets/${ADDRESS}/portfolio`).then((r) => r.json());
const vaultsUsdc = BigInt(p.hyperliquid.vaults_value_usdc);
const booksUsdg = BigInt(p.robinhood.books_value_usdg);
```

**Python**

```python
p = requests.get(f"https://api.degenhive.ai/v1/wallets/{ADDRESS}/portfolio").json()
print(int(p["hyperliquid"]["vaults_value_usdc"]) / 1e6, int(p["robinhood"]["books_value_usdg"]) / 1e6)
```

`Response (trimmed)`

```json
{
  "address": "0x…",
  "hyperliquid": {
    "chain_id": 999,
    "vault_positions": [],
    "vaults_value_usdc": "25400000000",
    "claimable_usdc": "0",
    "pending_deposit_usdc": "1000000000",
    "manager_pending_usdc": "0",
    "data_pending_refund_usdc": "0",
    "dgv_balance": "0"
  },
  "robinhood": {
    "chain_id": 4663,
    "book_positions": [],
    "books_value_usdg": "8100000000",
    "nft_pot_unpaid": "0"
  }
}
```

`GET https://api.degenhive.ai/v1/wallets/:address/activity`

Vault, book and NFT activity across both chains, newest first. Query: `chain`, `limit`, `offset`.

## Token

DGV routes. DGV launches later on Hyperliquid, so until token launch `GET /token` returns `"live": false` with zero totals, the lists are empty, and `GET /token/sale` and `GET /token/comb` return `404`. See [DGV launch](https://docs.degenhive.ai/token.md).

`GET https://api.degenhive.ai/v1/token`

DGV at a glance: address, supply, holders, claimed, emitted, locked, lockers, sale, Comb and the latest locker epoch.

`GET https://api.degenhive.ai/v1/token/holders`

Holders, largest first. Query: `limit`, `offset`.

`GET https://api.degenhive.ai/v1/token/transfers`

Transfers. Query: `account`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/token/claims`

`DGVClaim` claims. Query: `account`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/token/sale`

`DGVSale` state: price, window, caps, sold, raised and buyers.

`GET https://api.degenhive.ai/v1/token/sale/buyers`

Sale buyers. Query: `limit`, `offset`.

`GET https://api.degenhive.ai/v1/token/sale/events`

Purchases and vested claims. Query: `buyer`, `kind` (`bought`, `vested_claimed`), `limit`, `offset`.

`GET https://api.degenhive.ai/v1/token/emissions`

Emission releases and the forecaster share routing. Query: `kind` (`released`, `forecaster_forwarded`, `forecaster_returned`), `job_id`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/token/comb`

`OrderBookComb` ladder state: parameters, top-ups, in-flight USDC, total burned, ladder levels and the last reference and mid prices.

`GET https://api.degenhive.ai/v1/token/comb/events`

Ladders placed and cancelled, top-ups, burns and steps. Query: `kind`, `ladder_gen`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/token/comb/fills`

HyperCore fills of the Comb. Query: `since`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/token/locks`

Locks, largest first. Query: `limit`, `offset`.

`GET https://api.degenhive.ai/v1/token/locks/events`

Lock activity. Query: `account`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/token/locks/:account`

One account's lock, locker rewards and DGV balance.

`GET https://api.degenhive.ai/v1/token/locker/epochs`

Locker pot epochs. Query: `limit`, `offset`.

`GET https://api.degenhive.ai/v1/token/locker/events`

Locker weight and pot activity. Query: `account`, `kind`, `limit`, `offset`.

`GET https://api.degenhive.ai/v1/token/book-rewards/vaults`

`HyperBookRewards` state per vault. Query: `limit`, `offset`.

`GET https://api.degenhive.ai/v1/token/book-rewards/accounts/:account`

One account's depositor rewards: redirect, vesting stream and per-vault positions.

`GET https://api.degenhive.ai/v1/token/book-rewards/events`

Depositor rewards activity. Query: `vault`, `account`, `kind`, `limit`, `offset`.

## Related

- [WebSocket](https://docs.degenhive.ai/api/websocket.md) Live events per vault, job, pool or wallet, with cursor resume.
- [Agents, MCP & llms.txt](https://docs.degenhive.ai/agents.md) Give an AI agent the docs and a hot key.
- [Networks & status](https://docs.degenhive.ai/network.md) Chains, system addresses and deployment status.
- [How DegenHive works](https://docs.degenhive.ai/how-it-works.md) Protocol overview, roles and economics.
