# Glassnode Lightning Network Mean Channel Size

> Glassnode Lightning Network Mean Channel Size 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 mean BTC size of public Lightning Network channels over time, sourced from Glassnode on-chain analytics.

## Facts

- Endpoint: GET https://x402.glassnode.com/v1/metrics/lightning/channel_size_mean
- 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-mean-channel-size-9883a662
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gbyOQWxX-N2H-7dbMP4fr

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-mean-channel-size-9883a662
```

Example prompt: Pull the Glassnode Lightning Network mean channel size metric for BTC in native denomination — I want to see how the average channel size has been trending over the past day.

## When to prefer this

Use this endpoint when you need a time-series view of the mean BTC size of public Lightning Network channels, specifically sourced from Glassnode's on-chain data. Prefer this over generic Lightning Network explorers when you need structured, programmatic access to this metric for analysis or monitoring workflows.

## Known failure modes

- Missing required asset parameter 'a=BTC' returns a 400 bad request
- Invalid query parameter values (e.g. unsupported interval or currency) may return 400 or empty results
- Payment not completed or insufficient USDC balance returns 402 Payment Required
- Rate limiting or service unavailability returns 429 or 503
- Data may be delayed or unavailable for the most recent period

## How this service works

Lightning Network Channel Size (Mean) — The mean BTC size of public Lightning Network channels. Data by Glassnode.

## Output

An array of time-series data points, each containing a Unix timestamp (t) and the mean BTC size of public Lightning Network channels (v) for that period.

## 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-mean-channel-size-9883a662/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)
