# List queue boxes

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

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

Positions waiting for a slot, head first, oldest entries covered first. Use `/collateral/market` for the current head to work out how many positions are ahead of any one of them.

## Parameters

| Name | In | Type | Required | Description |

|---|---|---|---|---|

| `limit` | query | integer · int32 | no | The number of items in list to return |

| `offset` | query | integer · int32 | no | The offset to start the list from |

## Responses

### 200: Queue boxes, head first

`CollateralQueueEntry[]`

- `boxId` (string, required): Id of the queue box
- `position` (integer · int64, required): Place in the queue. Lower activates sooner; the head is the smallest live position.
- `lenderAddress` (string, required): Address that receives the block reward when this box funds a block
- `principalNanoErgs` (string, required): ERG committed to the block that consumes this box, bid and pool premium included. Decimal string.
- `priorityFeeNanoErgs` (string, required): The ERG this position added above the floor. '0' means it posted at the floor and offers nothing. Decimal string.
- `permitLit` (string, required): LIT locked alongside it, returned on use. Zero when no permit applies. Decimal string.
- `creationHeight` (integer · int32, required): Height this position joined at

### 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/queue"
```

## Example response

```json
[
  {
    "boxId": "ce00d6e0f4fd3390c0519bb0d24824e1e6b06978163f4845a7cf2c1c7d8f1b65",
    "position": 411,
    "lenderAddress": "3WwbQFz3vgi8ChY9dM1haQLGDeQYe5U9z98bwWW4TqxxEAvyYu5y",
    "principalNanoErgs": "2915000000",
    "priorityFeeNanoErgs": "0",
    "permitLit": "19380000000",
    "creationHeight": 484102
  }
]
```
