# LithosDex fee vault state

`GET /dex/vault` · Lithos client API · Lithos Dex

Source: https://lithosprotocol.org/docs/api/get-ld-vault

Current state of the fee vault, which holds flushed fees. `payableX` excludes `vaultMin`, which is never paid out.

## Responses

### 200: Current vault state

`LDVaultInfo`

- `vaultNFT` (string, required): Token id of the vault NFT
- `utxoId` (string, required): Vault box id. Send back as `expectedVaultBoxId` when executing.
- `accX` (string, required): The pool's ERG accumulator as of the last flush. Decimal string.
- `accY` (string, required): Token side of the same. Decimal string.
- `balanceX` (string, required): Total nanoERG held by the vault box, including the rent reserve. Decimal string.
- `balanceY` (string, required): Token-side fees held. Zero until a flush carries any. Decimal string.
- `payableX` (string, required): nanoERG the vault can actually part with — balanceX less vaultMin. Decimal string.
- `payableY` (string, required): Tokens the vault can part with. Nothing is held back on this side. Decimal string.
- `tokenY` (string): The pool's token, absent while the vault holds no token entry
- `vaultMin` (string, required): Held back from every payout so the vault survives storage rent. Decimal string.
- `lastFlushHeight` (integer · int32): Height of the most recent flush observed. Absent until one is seen.
- `syncHeight` (integer · int32, required)

### 404: No vault box found on this network.

`ApiError`

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

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

## Example response

```json
{
  "vaultNFT": "670a188c61b803a5ef12fedb2eb4ed7ab7b1eba1df9787f780a122bf3875781d",
  "utxoId": "88c297f99da7172f6aa20efbead69aa40e2b7734a1873d66ca1db6b19d214db6",
  "accX": "38640000000000000000000000",
  "accY": "1167600000000000000000000",
  "balanceX": "9420000000",
  "balanceY": "284300000",
  "payableX": "9320000000",
  "payableY": "284300000",
  "tokenY": "86e272f770aa4ef48ad7e6d6dbe98b5069edd8383a403a8edb3ceed8a3d5cea3",
  "vaultMin": "100000000",
  "lastFlushHeight": 1298100,
  "syncHeight": 1312460
}
```
