---
title: GET /v1/usdhb
---

# `GET /v1/usdhb`

Get USDhb state

The public USDhb state: parameters, supply, hedge book, reserve against target, capacity headroom and the mints-halted flag; the proof-of-backing payload, with no user data.

Money, price, rate and count fields cross the wire as decimal strings; units are shown beside each field ([Wire encoding](/api/wire-encoding)). Group: [Usdhb](/api/reference/usdhb/).

**Auth:** none (public)

**Effect:** `read`: reads only

## Request

```bash [curl]
curl -fsS "$HB/v1/usdhb"
```

```python [Python]
import os

import requests

HB = os.environ.get("HB", "https://testnet.hardbasis.com")

resp = requests.get(
    f"{HB}/v1/usdhb",
)
resp.raise_for_status()
print(resp.json())
```

```ts [TypeScript]
const HB = process.env.HB ?? "https://testnet.hardbasis.com";

const res = await fetch(`${HB}/v1/usdhb`, {
  method: "GET",
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());
```

## Responses

- **200**: OK
  - <span id="res-200-tsMs"></span>`tsMs` · string · unit `ms` · required
  - <span id="res-200-params"></span>`params` · object · required
    - <span id="res-200-params-baseFeeQ9"></span>`baseFeeQ9` · string · unit `q9` · required
    - <span id="res-200-params-spreadQ9"></span>`spreadQ9` · string · unit `q9` · required
    - <span id="res-200-params-reserveTargetQ9"></span>`reserveTargetQ9` · string · unit `q9` · required
    - <span id="res-200-params-reserveFloorQ9"></span>`reserveFloorQ9` · string · unit `q9` · required
    - <span id="res-200-params-dynFeeCurve"></span>`dynFeeCurve` · object[] · required
    - <span id="res-200-params-hardCap"></span>`hardCap` · string · required
    - <span id="res-200-params-quoteTtlMs"></span>`quoteTtlMs` · string · unit `ms` · required
    - <span id="res-200-params-mintVelocityQ9PerH"></span>`mintVelocityQ9PerH` · string · unit `q9` · required
    - <span id="res-200-params-mintVelocityFloor"></span>`mintVelocityFloor` · string · required
    - <span id="res-200-params-requoteToleranceQ9"></span>`requoteToleranceQ9` · string · unit `q9` · required
  - <span id="res-200-supply"></span>`supply` · string · required
  - <span id="res-200-hedge"></span>`hedge` · object · required
    - <span id="res-200-hedge-contracts"></span>`contracts` · string · unit `contracts` · required
    - <span id="res-200-hedge-entryPriceQ8"></span>`entryPriceQ8` · string \| null · unit `q8` · required
    - <span id="res-200-hedge-marginMsat"></span>`marginMsat` · string · unit `msat` · required
    - <span id="res-200-hedge-equityMsat"></span>`equityMsat` · string \| null · unit `msat` · required
  - <span id="res-200-backingIdentityHolds"></span>`backingIdentityHolds` · boolean · required
  - <span id="res-200-reserveMsat"></span>`reserveMsat` · string · unit `msat` · required
  - <span id="res-200-reserveTargetMsat"></span>`reserveTargetMsat` · string \| null · unit `msat` · required
  - <span id="res-200-reserveFloorMsat"></span>`reserveFloorMsat` · string \| null · unit `msat` · required
  - <span id="res-200-markQ8"></span>`markQ8` · string \| null · unit `q8` · required
  - <span id="res-200-indicative"></span>`indicative` · object \| null · required
  - <span id="res-200-oracleFresh"></span>`oracleFresh` · boolean · required
  - <span id="res-200-mintedLastHour"></span>`mintedLastHour` · string · required
  - <span id="res-200-redeemedLastHour"></span>`redeemedLastHour` · string · required
  - <span id="res-200-capacity"></span>`capacity` · object · required
    - <span id="res-200-capacity-headroom"></span>`headroom` · string \| null · required
    - <span id="res-200-capacity-limit"></span>`limit` · enum(`organic_oi`, `hard_cap`, `oi_cap`, `skew`, `velocity`) \| null · required
    - <span id="res-200-capacity-perLimit"></span>`perLimit` · object \| null · required
  - <span id="res-200-mintsHalted"></span>`mintsHalted` · boolean · required: Halts user mints AND stakes (a stake is a mint-class flow; stakeUsdhb refuses with usdhb_mints_halted). Redemptions, unstake releases and the waterfall's yield mints continue, so supply can move while this is true.
  - <span id="res-200-mintsHaltedReason"></span>`mintsHaltedReason` · string \| null · required
  - <span id="res-200-lastAttestation"></span>`lastAttestation` · object \| null · required
  - <span id="res-200-attestationIntervalMs"></span>`attestationIntervalMs` · string · unit `ms` · required
  - <span id="res-200-attestationSweepMs"></span>`attestationSweepMs` · string \| null · unit `ms` · required
  - <span id="res-200-features"></span>`features` · object · required
    - <span id="res-200-features-mint"></span>`mint` · boolean · required
    - <span id="res-200-features-redeem"></span>`redeem` · boolean · required
    - <span id="res-200-features-stake"></span>`stake` · boolean · required
    - <span id="res-200-features-withdraw"></span>`withdraw` · boolean · required
  - <span id="res-200-staking"></span>`staking` · object · required
    - <span id="res-200-staking-sharePriceQ9"></span>`sharePriceQ9` · string · unit `q9` · required
    - <span id="res-200-staking-staked"></span>`staked` · string · required
    - <span id="res-200-staking-susdhbSupply"></span>`susdhbSupply` · string · required
    - <span id="res-200-staking-yieldEscrowMsat"></span>`yieldEscrowMsat` · string · unit `msat` · required
    - <span id="res-200-staking-uncoveredShortfallMsat"></span>`uncoveredShortfallMsat` · string · unit `msat` · required
    - <span id="res-200-staking-unstakeCooldownMs"></span>`unstakeCooldownMs` · string · unit `ms` · required
    - <span id="res-200-staking-lastWaterfall"></span>`lastWaterfall` · object \| null · required
  - <span id="res-200-tokenIdentifier"></span>`tokenIdentifier` · string \| null · required
  - <span id="res-200-freezeCount"></span>`freezeCount` · integer · required
  - <span id="res-200-frozenCount"></span>`frozenCount` · integer · required
  - <span id="res-200-supplyLedger"></span>`supplyLedger` · object \| null · required
  - <span id="res-200-walletsDisplayingTokens"></span>`walletsDisplayingTokens` · string[] · required

Example `200` response:

```json
{
  "tsMs": "100000",
  "params": {
    "baseFeeQ9": "100000",
    "spreadQ9": "100000",
    "reserveTargetQ9": "100000",
    "reserveFloorQ9": "100000",
    "dynFeeCurve": [
      {
        "xQ9": "100000",
        "yQ9": "100000"
      }
    ],
    "hardCap": "string",
    "quoteTtlMs": "100000",
    "mintVelocityQ9PerH": "100000",
    "mintVelocityFloor": "string",
    "requoteToleranceQ9": "100000"
  },
  "supply": "string",
  "hedge": {
    "contracts": "100000",
    "entryPriceQ8": "100000",
    "marginMsat": "100000",
    "equityMsat": "100000"
  },
  "backingIdentityHolds": true,
  "reserveMsat": "100000",
  "reserveTargetMsat": "100000",
  "reserveFloorMsat": "100000",
  "markQ8": "100000",
  "indicative": {
    "bidQ8": "100000",
    "askQ8": "100000",
    "spreadQ9": "100000",
    "oracleTsMs": "100000"
  },
  "oracleFresh": true,
  "mintedLastHour": "string",
  "redeemedLastHour": "string",
  "capacity": {
    "headroom": "string",
    "limit": "organic_oi",
    "perLimit": {
      "organic_oi": "string",
      "hard_cap": "string",
      "oi_cap": "string",
      "skew": "string",
      "velocity": "string"
    }
  },
  "mintsHalted": true,
  "mintsHaltedReason": "string",
  "lastAttestation": {
    "asOfTsMs": "100000",
    "issuerSupply": "string",
    "issuerIssued": "string",
    "issuerBurned": "string",
    "issuerCustody": "string",
    "ledgerSupply": "string",
    "ledgerCustody": "string",
    "ok": true
  },
  "attestationIntervalMs": "100000",
  "attestationSweepMs": "100000",
  "features": {
    "mint": true,
    "redeem": true,
    "stake": true,
    "withdraw": true
  },
  "staking": {
    "sharePriceQ9": "100000",
    "staked": "string",
    "susdhbSupply": "string",
    "yieldEscrowMsat": "100000",
    "uncoveredShortfallMsat": "100000",
    "unstakeCooldownMs": "100000",
    "lastWaterfall": {
      "boundaryTsMs": "100000",
      "markQ8": "100000",
      "flowMsat": "100000",
      "toReserveMsat": "100000",
      "toStakersMsat": "100000",
      "overflowMsat": "100000",
      "shortfallMsat": "100000",
      "markdown": "string",
      "yieldMinted": "string",
      "sharePriceQ9Before": "100000",
      "sharePriceQ9After": "100000"
    }
  },
  "tokenIdentifier": "string",
  "freezeCount": 0,
  "frozenCount": 0,
  "supplyLedger": {
    "mintedQ6": "100000",
    "burnedQ6": "100000",
    "outstandingQ6": "100000",
    "asOfMs": "100000",
    "issuerSupplyQ6": "100000",
    "reconciled": true,
    "reconciledAtMs": "100000"
  },
  "walletsDisplayingTokens": [
    "string"
  ]
}
```
