# This wallet's ZC activity

`GET /sigmafi/zc/activity` · Lithos client API · SigmaFi ZC Standard · requires the `api_key` header

Source: https://lithosprotocol.org/docs/api/list-zc-activity

This wallet's ZC events from its own transactions since the ZC start height, newest first. The first page leads with `pending` events from the mempool: boxes naming this wallet not yet confirmed (`posted`) and confirmed ones a pending transaction spends (`spending`).

## Parameters

| Name | In | Type | Required | Description |

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

| `cursor` | query | string | no | The `next` value of the previous page.  |

| `limit` | query | integer | no | Page size, 1 to 200. Default 50.  |

## Responses

### 200: One page of events

`ZcActivity`

- `at` (ZcAt): The snapshot a read or quote was taken from.
  - `height` (integer)
  - `blockId` (string)
  - `indexedHeight` (integer)
  - `revision` (integer · int64): Changes whenever anything a read returns changes, the mempool included.
  - `cut` (boolean): True when the book is at its size cap and left boxes out.
  - `mempool` (boolean): Whether unconfirmed boxes are laid over the confirmed book.
- `status` (string, one of not-configured, loading, ready): How far the wallet history has read.
- `items` (object[])
  - `id` (string)
  - `height` (integer)
  - `txId` (string)
  - `type` (string): lent, borrowed, bought, sold, lotBought, lotSold, repaid, liquidated, extinguished, recollateralized, claimed, pulled, sharesMinted, wrapped, unwrapped, posted, returned; pending events are posted or spending. 
  - `status` (string, one of pending, confirmed)
  - `market` (string)
  - `refs` (map<string, string>)
  - `amounts` (object)
    - `tokenId` (string)
    - `units` (string)
    - `amount` (string): In the market's unit. Paid for lent and bought; received for sold and claimed; the principal for borrowed and repaid.
- `next` (string)

### 400: A malformed field, or terms the contracts refuse.

`ApiError`

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

### 403: Missing or wrong api_key.

`ApiError`

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

### 503: ZC tracking is off or not seeded, or the node, its index or the wallet did not answer. Nothing was sent.

`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/sigmafi/zc/activity" \
  -H "api_key: $LITHOS_API_KEY"
```

## Example response

```json
{
  "at": {
    "height": 0,
    "blockId": "string",
    "indexedHeight": 0,
    "revision": 0,
    "cut": true,
    "mempool": true
  },
  "status": "not-configured",
  "items": [
    {
      "id": "string",
      "height": 0,
      "txId": "string",
      "type": "string",
      "status": "pending",
      "market": "string",
      "refs": {
        "key": "string"
      },
      "amounts": {
        "tokenId": "string",
        "units": "string",
        "amount": "string"
      }
    }
  ],
  "next": "string"
}
```
