> ## Documentation Index
> Fetch the complete documentation index at: https://docs.topokki.exchange/llms.txt
> Use this file to discover all available pages before exploring further.

# API status and configuration

> Check service health, read network configuration, and monitor transaction status.

## Health

`GET /health`

```bash theme={null}
curl 'https://api.testnet.topokki.exchange/health'
```

```json theme={null}
{
  "status": "ok",
  "quoteState": "pending",
  "flashblocks": "enabled"
}
```

`status` is `ok` when the API dependencies are available, and `degraded` when one or more checks fail.

## Configuration

`GET /v1/config`

```bash theme={null}
curl 'https://api.testnet.topokki.exchange/v1/config'
```

```json theme={null}
{
  "chainId": 91342,
  "weth9": "0x4200000000000000000000000000000000000006",
  "quoterV2": "0x0aff314f898884c9ba81e4dcbf99f3e9d60ffd8f",
  "permit2": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
  "universalRouter": "0xc4a0afb2436792e11d7892c107482f8e8e65c4cd",
  "flashblocks": {
    "enabled": true,
    "quoteState": "pending"
  }
}
```

Use this endpoint to confirm the chain and execution addresses your integration expects.

## Transaction status

`GET /v1/transactions/:hash`

```bash theme={null}
curl 'https://api.testnet.topokki.exchange/v1/transactions/0xYourTransactionHash'
```

The response reports `confirmed` for a canonical transaction, or `preconfirmed` when the transaction is visible through the pending-state service. Invalid hashes return `400`.

```json theme={null}
{
  "status": "confirmed",
  "receipt": {
    "transactionHash": "0x...",
    "blockNumber": "0x1e102ab",
    "status": "0x1"
  }
}
```

## Pending-block status

`GET /v1/flashblocks`

```bash theme={null}
curl 'https://api.testnet.topokki.exchange/v1/flashblocks'
```

```json theme={null}
{
  "enabled": true,
  "quoteState": "pending",
  "blockNumber": "31530220",
  "blockHash": "0x...",
  "transactionCount": 3
}
```
