# Litecoin Fees, Difficulty & Mining API
> Litecoin's fee market, difficulty cycle and mining-pool distribution, live from the public Litecoin Space API (a mempool.space instance) — no key, nothing cached. The existing Litecoin reader covers addresses, transactions and blocks; this opens the network-economics layer it does not. Read the recommended fee rates in litoshi per virtual byte — from next-block down to economy and the relay minimum — together with the live mempool backlog. Read the difficulty adjustment: how far through the current 2016-block retarget window the chain is, the projected difficulty change, the estimated retarget date and the blocks remaining. And read the mining-pool distribution over the last week — which pools are finding Litecoin blocks, how many, their share and the network's estimated hashrate (Litecoin is mined with Scrypt, often merge-mined with Dogecoin). The fee-and-mining layer for Litecoin wallets, miners, fee estimators and analytics. Live from litecoinspace.org.

## Authentication
All requests require your oanor API key in the `x-oanor-key` header. Get one at https://www.oanor.com/developer/keys.

```bash
curl -H "x-oanor-key: oanor_live_…" "https://api.oanor.com/litecoinfees-api/..."
```

## Pricing
- **Free** (Free) — 7,150 calls/Mo, 3 req/s
- **Starter** ($9/Mo) — 135,500 calls/Mo, 9 req/s
- **Pro** ($33/Mo) — 788,000 calls/Mo, 22 req/s
- **Business** ($88/Mo) — 5,120,000 calls/Mo, 55 req/s

## Endpoints

### Fees

#### `GET /v1/fees` — Recommended fee rates (litoshi/vB) and the current mempool size

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/litecoinfees-api/v1/fees"
```

**Response:**
```json
{
    "data": {
        "note": "Recommended Litecoin fee rates in litoshi per virtual byte: fastest_fee for the next block, down to economy_fee and the relay minimum. mempool_* describe the current backlog of unconfirmed transactions.",
        "unit": "litoshi/vB",
        "source": "Litecoin Space",
        "hour_fee": 1,
        "economy_fee": 1,
        "fastest_fee": 1,
        "minimum_fee": 1,
        "half_hour_fee": 1,
        "mempool_vsize": 240356,
        "mempool_tx_count": 820,
        "mempool_total_fee": 2822538
    },
    "meta": {
        "timestamp": "2026-06-14T17:04:28.600Z",
        "request_id": "8966e89a-fd99-4b65-9a20-1b106051ab47"
    },
    "status": "ok",
    "message": "Fees retrieved successfully",
    "success": true
}
```

### Network

#### `GET /v1/difficulty` — Difficulty retarget window: progress, projected change, retarget date, blocks left

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/litecoinfees-api/v1/difficulty"
```

**Response:**
```json
{
    "data": {
        "note": "Litecoin's current difficulty retarget window (Litecoin retargets every 2016 blocks, ~3.5 days): how far through it the chain is, the projected difficulty change, the estimated retarget date and the blocks remaining.",
        "source": "Litecoin Space",
        "progress_pct": 11.9048,
        "remaining_blocks": 1776,
        "remaining_time_ms": 275889168,
        "next_retarget_height": 3126816,
        "difficulty_change_pct": -3.2476,
        "previous_retarget_pct": -1.0652,
        "estimated_retarget_timestamp": 1781732557168
    },
    "meta": {
        "timestamp": "2026-06-14T17:04:28.717Z",
        "request_id": "537e197c-a55c-4d56-abf6-c7bae9f53477"
    },
    "status": "ok",
    "message": "Difficulty retrieved successfully",
    "success": true
}
```

### Mining

#### `GET /v1/mining` — Mining-pool distribution over 1 week, with each pool share and the network hashrate

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/litecoinfees-api/v1/mining"
```

**Response:**
```json
{
    "data": {
        "note": "Litecoin mining-pool distribution over the last week: which pools found blocks, how many, their share of total blocks and the network's estimated hashrate. Litecoin is mined with Scrypt, often merge-mined with Dogecoin.",
        "pools": [
            {
                "name": "F2Pool",
                "blocks_1w": 1422,
                "share_pct": 36.12
            },
            {
                "name": "ViaBTC",
                "blocks_1w": 1038,
                "share_pct": 26.37
            },
            {
                "name": "AntPool",
                "blocks_1w": 579,
                "share_pct": 14.71
            },
            {
                "name": "Hash700",
                "blocks_1w": 184,
                "share_pct": 4.67
            },
            {
                "name": "Unknown",
                "blocks_1w": 148,
                "share_pct": 3.76
            },
            {
                "name": "LSoftware DMCC",
                "blocks_1w": 136,
                "share_pct": 3.45
            },
            {
                "name": "Litecoinpool.org",
                "blocks_1w": 136,
                "share_pct": 3.45
            },
            {
                "name": "EMCDPool",
                "blocks_1w": 110,
                "share_pct": 2.79
            },
            {
                "name": "NiceHash",
                "blocks_1w": 49,
                "share_pct": 1.24
            },
            {
    
…(truncated, see openapi.json for full schema)
```

### Meta

#### `GET /v1/meta` — Service metadata

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/litecoinfees-api/v1/meta"
```

**Response:**
```json
{
    "data": {
        "sample": {
            "mempool_tx": 820,
            "fastest_fee": 1
        },
        "source": "public Litecoin Space API (litecoinspace.org/api), keyless",
        "service": "litecoinfees-api",
        "endpoints": {
            "GET /v1/fees": "Recommended fee rates (litoshi/vB) and the current mempool size.",
            "GET /v1/meta": "This document.",
            "GET /v1/mining": "Mining-pool distribution over 1 week, with each pool's share and the network hashrate.",
            "GET /v1/difficulty": "Difficulty retarget window: progress, projected change, retarget date, blocks left."
        },
        "description": "Read Litecoin's fee market, difficulty cycle and mining-pool distribution live from the public Litecoin Space API: the recommended fee rates (litoshi/vB) and live mempool size, the difficulty adjustment (progress, projected change, retarget date, blocks remaining) and the mining-pool distribution with each pool's share and the network hashrate. The fee-and-mining layer for Litecoin wallets, miners and fee estimators. Live, short cache only.",
        "upstream_status": "ok"
    },
    "meta": {
        "timestamp": "2026-06-14T17:04:28.918Z",
        "request_id": "40da58a2-6cfa-4b91-b5e0-5edb07edcf6a"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


---
Marketplace page: https://www.oanor.com/api/litecoinfees-api
OpenAPI spec: https://www.oanor.com/api/litecoinfees-api/openapi.json
