# Glassnode Lightning Network Channel Size Median

> Glassnode Lightning Network Channel Size Median is a paid API for AI agents from x402.glassnode.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Returns the median size of public Lightning Network payment channels over time for Bitcoin, sourced from Glassnode on-chain analytics.

## Facts

- Endpoint: GET https://x402.glassnode.com/v1/metrics/lightning/channel_size_median
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glassnode-lightning-network-channel-size-median-e65176fe
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vL7wgaITEcvfqShSo-OUj

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability glassnode-lightning-network-channel-size-median-e65176fe
```

Example prompt: What's the current median Lightning Network channel size for Bitcoin according to Glassnode — can you get the latest daily figure in native BTC units?

## When to prefer this

Use this endpoint when you need the median (typical) Lightning Network channel size as a time series for Bitcoin, sourced from Glassnode's professional-grade on-chain data. Prefer this over general blockchain explorers when you need structured, analytics-ready historical data with clean timestamped records specifically about LN channel capacity distribution.

## Known failure modes

- Missing required 'a' query parameter (must be 'BTC') returns a 400 Bad Request
- Invalid or unsupported interval value returns an error
- Payment not provided or insufficient — returns HTTP 402 Payment Required
- Rate limiting or quota exceeded returns 429
- Data may not be available for all historical periods, returning empty arrays

## How this service works

Lightning Network Channel Size (Median) — The median size of public Lightning Network channels. Data by Glassnode.

## Output

An array of timestamped data points, each containing a Unix timestamp (t) and the median Lightning Network channel size value (v) in the requested denomination (native BTC or USD), reflecting the typical public LN channel capacity at that point in time.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "a"
     ],
     "properties": {
      "a": {
       "enum": [
        "BTC"
       ],
       "type": "string",
       "description": "Asset symbol, e.g. BTC, ETH"
      },
      "c": {
       "enum": [
        "native",
        "usd"
       ],
       "type": "string",
       "description": "Currency for denominated values, e.g. usd, native"
      },
      "f": {
       "enum": [
        "csv",
        "json"
       ],
       "type": "string",
       "description": "Response format: json or csv"
      },
      "i": {
       "enum": [
        "24h"
       ],
       "type": "string",
       "description": "Time interval / resolution, e.g. 24h, 1w, 1month"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "array",
     "items": {
      "type": "object",
      "properties": {
       "t": {
        "type": "number"
       },
       "v": {
        "type": "number"
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glassnode-lightning-network-channel-size-median-e65176fe/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.glassnode.com](https://www.zero.xyz/host/x402.glassnode.com/llms.txt)
