# Collateral market snapshot

`GET /collateral/market` · Lithos client API · Collateral Market

Source: https://lithosprotocol.org/docs/api/get-collateral-market-info

Current queue and active-set sizes, total ERG and LIT locked, the permit a new join pays, and where the emission schedule currently sits.

## Responses

### 200: Current market state

`CollateralMarketInfo`

- `syncHeight` (integer · int32, required): Chain height this snapshot was taken at
- `activationCounter` (integer · int32, required): Activations paid so far — the emission box's position in the schedule
- `queueHead` (integer · int64, required): Position of the queue box that activates next
- `queueTail` (integer · int64, required): Position the next join will take
- `queueLength` (integer · int64, required): Positions waiting — queueTail less queueHead
- `activeSetSize` (integer · int32, required): Distinct lender keys currently holding a live collateral box
- `activeSetMax` (integer · int32, required): Slots the active set can hold. Fixed by contract.
- `bootstrapping` (boolean, required): True while the set is still filling and an Activate needs no retirement
- `proofsOfSpendAvailable` (integer · int32, required): Retirements usable next block — how many queued positions could activate now
- `queuedNanoErgs` (string, required): Total principal sitting in the queue. Decimal string.
- `activeNanoErgs` (string, required): Total value across the live collateral boxes. Decimal string.
- `permitLitLocked` (string, required): LIT locked as permits across the queue and the active set. Decimal string.
- `principalNanoErgs` (string, required): What one join posts — block reward less fee cap plus dust. Fixed by contract. Decimal string.
- `currentPermitLit` (string, required): The permit the NEXT join pays at this backlog, before any escalation. Decimal string.
- `permitFloorLit` (string, required): Permit at an empty queue, from the config box. Decimal string.
- `permitCeilingLit` (string, required): The most a permit can ever be. Decimal string.
- `permitSlopeLitPerBox` (string, required): Permit added per queued box. Decimal string.
- `emissionPhase` (string, required, one of DECAYING, STEPPED, FLAT_50, ENDED): Public emission rate phase. DECAYING drops every two epochs; STEPPED is the two fixed intermediate rates; FLAT_50 is the final constant rate; ENDED means the schedule is complete. 
- `foundersActive` (boolean, required): True while the private founder allocation is still being paid alongside the public rate
- `currentEpoch` (integer · int32, required): Schedule epoch of the last activation
- `nextPhaseChangeHeight` (integer · int32): Height of the next rate change or epoch boundary. Null once ENDED.
- `emissionRatePublicLit` (string, required): Public LIT per activation at this point in the schedule. Decimal string.
- `emissionRatePrivateLit` (string, required): Founder-side LIT per activation, zero once that period ends. Decimal string.
- `emissionRateTotalLit` (string, required): What one Activate actually emits, capped by what the box still holds. Decimal string.
- `scheduleEndsAtHeight` (integer · int32, required): Activation count the schedule ends at (2,825,000)

### 503: Node unavailable. Retry.

`ApiError`

- `error` (integer, required): Error code
- `reason` (string, required): Error message explaining the reason of the error
- `detail` (string, required): Detailed error description

### default: Error

`ApiError`

- `error` (integer, required): Error code
- `reason` (string, required): Error message explaining the reason of the error
- `detail` (string, required): Detailed error description

## Example request

```bash
curl -X GET "http://localhost:9000/collateral/market"
```

## Example response

```json
{
  "syncHeight": 484719,
  "activationCounter": 1234,
  "queueHead": 410,
  "queueTail": 1247,
  "queueLength": 837,
  "activeSetSize": 97,
  "activeSetMax": 100,
  "bootstrapping": false,
  "proofsOfSpendAvailable": 2,
  "queuedNanoErgs": "2439835500000",
  "activeNanoErgs": "282755000000",
  "permitLitLocked": "12840000000",
  "principalNanoErgs": "2915000000",
  "currentPermitLit": "19370000000",
  "permitFloorLit": "1000000000000",
  "permitCeilingLit": "30000000000000",
  "permitSlopeLitPerBox": "10000000000",
  "emissionPhase": "DECAYING",
  "foundersActive": true,
  "currentEpoch": 0,
  "nextPhaseChangeHeight": 250000,
  "emissionRatePublicLit": "500000000000",
  "emissionRatePrivateLit": "140000000000",
  "emissionRateTotalLit": "640000000000",
  "scheduleEndsAtHeight": 2825000
}
```
