# Glassnode Lightning Network Fee Rate (Median)

> Glassnode Lightning Network Fee Rate (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 fee rate in the Bitcoin Lightning Network, expressed in sat/BTC, derived from the Lightning channel graph.

## Facts

- Endpoint: GET https://x402.glassnode.com/v1/metrics/lightning/fee_rate_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-fee-rate-median-7364e8bd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_i4pga2d1yyhOWLc8zqJVO

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-fee-rate-median-7364e8bd
```

Example prompt: What's the current median fee rate on the Bitcoin Lightning Network according to Glassnode? Give me the data in JSON format with daily resolution.

## When to prefer this

Use this endpoint when you need quantitative Lightning Network fee rate data sourced from the channel graph, especially for time-series analysis, dashboards, or monitoring Bitcoin payment routing costs. Prefer this over on-chain fee endpoints when the focus is specifically on Lightning routing fees rather than base-layer miner fees.

## Known failure modes

- Missing required 'a' query parameter (asset symbol) returns a 400 error
- Invalid asset symbol other than 'BTC' rejected by enum validation
- Payment not provided or insufficient USDC balance triggers 402 Payment Required
- Network or upstream Glassnode data unavailability may return 503
- Invalid format parameter returns error; must be 'json' or 'csv'

## How this service works

Lightning Network Fee Rate (Median) — The median fee rate in the Lightning Network, derived from the channel graph and expressed in units of sat / BTC. A value of 1000 indicates that a fee of 1000 Satoshi is required to transfer 1 BTC. Data by Glassnode.

## Output

Returns a time-series array of objects, each with a Unix timestamp ('t') and the median Lightning Network fee rate value ('v') expressed in sat/BTC (e.g. 1000 means 1000 sat per BTC transferred).

## 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"
       ],
       "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-fee-rate-median-7364e8bd/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)
