# Litecoin API
> Live on-chain data from the Litecoin network (LTC), the long-running silver-to-Bitcoin's-gold proof-of-work UTXO chain with 2.5-minute blocks and Scrypt mining, via the public litecoinspace.org explorer. Like Bitcoin, Litecoin is UTXO-based. Resolve any address's confirmed LTC balance, the total it has ever received and sent, its transaction count and any unconfirmed mempool balance. Look up a transaction's fee, size, input and output counts, total output value and confirmation status. Read a block's height, hash, timestamp, transaction count, size and difficulty. Get the live chain state — the tip height, the recommended fee rates, the mempool size and fees, and the next difficulty adjustment. Live, no key, nothing stored. Distinct from the Bitcoin, Kaspa, XRP Ledger, Cardano, Hedera, Cosmos, Sui, NEAR, MultiversX, Starknet, Solana and EVM on-chain APIs and from price feeds — this is Litecoin's UTXO address state, transactions, blocks and fees. Perfect for wallets, explorers and payments apps.

## 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/litecoin-api/..."
```

## Pricing
- **Free** (Free) — 7,000 calls/Mo, 2 req/s
- **Starter** ($11/Mo) — 141,000 calls/Mo, 5 req/s
- **Pro** ($33/Mo) — 868,000 calls/Mo, 15 req/s
- **Business** ($77/Mo) — 4,500,000 calls/Mo, 40 req/s

## Endpoints

### Address

#### `GET /v1/address` — Address LTC balance + history

**Parameters:**
- `address` (query, required, string) — Litecoin address (L/M/3/ltc1) Example: `MHW7mSZpDGggL3uh26RPqpsE45EEz6eghg`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/litecoin-api/v1/address?address=MHW7mSZpDGggL3uh26RPqpsE45EEz6eghg"
```

**Response:**
```json
{
    "data": {
        "source": "Litecoin",
        "address": "MHW7mSZpDGggL3uh26RPqpsE45EEz6eghg",
        "tx_count": 2,
        "balance_ltc": 0,
        "total_sent_ltc": 1.32364606,
        "total_received_ltc": 1.32364606,
        "unconfirmed_tx_count": 0,
        "unconfirmed_balance_ltc": 0
    },
    "meta": {
        "timestamp": "2026-06-10T14:02:05.988Z",
        "request_id": "2dc2fdf3-9705-4fe5-9188-1b2ec87c0009"
    },
    "status": "ok",
    "message": "Address retrieved successfully",
    "success": true
}
```

### Transaction

#### `GET /v1/transaction` — Transaction fee, size and outputs

**Parameters:**
- `id` (query, required, string) — Transaction id (64 hex) Example: `859f6c5ad3fb7ea02964ae77368a1f00c0d5659ebff3da9fa68d9083bc1fa3e0`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/litecoin-api/v1/transaction?id=859f6c5ad3fb7ea02964ae77368a1f00c0d5659ebff3da9fa68d9083bc1fa3e0"
```

**Response:**
```json
{
    "data": {
        "size": 223,
        "txid": "859f6c5ad3fb7ea02964ae77368a1f00c0d5659ebff3da9fa68d9083bc1fa3e0",
        "source": "Litecoin",
        "weight": 892,
        "fee_ltc": 0.00189663,
        "version": 2,
        "confirmed": true,
        "block_time": "2026-06-10T09:05:33.000Z",
        "fee_litoshi": 189663,
        "input_count": 1,
        "block_height": 3122602,
        "output_count": 2,
        "total_output_ltc": 1.34213304
    },
    "meta": {
        "timestamp": "2026-06-10T14:02:06.149Z",
        "request_id": "abb7a811-1935-4887-bd4a-455c45b019aa"
    },
    "status": "ok",
    "message": "Transaction retrieved successfully",
    "success": true
}
```

### Block

#### `GET /v1/block` — Block details

**Parameters:**
- `height` (query, optional, string) — latest, a number or 0x hash Example: `latest`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/litecoin-api/v1/block?height=latest"
```

**Response:**
```json
{
    "data": {
        "hash": "08215d27d8cca209d7f01faf0e473d711f95a71fa2c883f8eae90ac7eea63582",
        "size": 115339,
        "nonce": 1694292631,
        "height": 3122719,
        "source": "Litecoin",
        "weight": 313027,
        "version": 536870932,
        "tx_count": 293,
        "timestamp": "2026-06-10T13:56:29.000Z",
        "difficulty": 100804941.18980844,
        "merkle_root": "c6b59ea0e9e8d9e806ff80e27d487da4664d9271ba63338abf4b4951f2e88b06",
        "previous_hash": "f96fcd5c93bdc08223de3bcfe50b3b69b2e00bd506ee5744cabde29ac4782190"
    },
    "meta": {
        "timestamp": "2026-06-10T14:02:06.358Z",
        "request_id": "6cb4e2d4-9720-4769-a9fb-51800ed55ff5"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}
```

### Network

#### `GET /v1/network` — Live tip, fees, mempool, difficulty

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

**Response:**
```json
{
    "data": {
        "chain": "litecoin",
        "source": "Litecoin",
        "mempool": {
            "vsize": 265203,
            "tx_count": 800,
            "total_fee_litoshi": 2671974
        },
        "tip_height": 3122719,
        "difficulty_adjustment": {
            "progress_pct": 96.7758,
            "remaining_blocks": 65,
            "estimated_retarget": "2026-06-10T16:48:23.175Z",
            "difficulty_change_pct": -2.2269
        },
        "recommended_fees_sat_vb": {
            "hour": 1,
            "economy": 1,
            "fastest": 1,
            "minimum": 1,
            "half_hour": 1
        }
    },
    "meta": {
        "timestamp": "2026-06-10T14:02:06.638Z",
        "request_id": "33dae358-052f-4492-9101-0f2bf8c29e4d"
    },
    "status": "ok",
    "message": "Network state retrieved successfully",
    "success": true
}
```


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