Glassnode Docs
WebsiteStudioInsightsTwitter
  • Welcome to Glassnode
    • Introduction
      • Studio
  • 📊Data
    • General Information
      • Timestamps and Resolutions
      • Data Availability
      • Data Finalization
    • Metric Catalog
    • Supported Blockchains
    • Supported Assets
      • Market Metrics Coverage
      • On-chain Metrics Coverage
    • Point-in-Time Metrics
  • 📖Guides & Tutorials
    • Getting Started
      • Use-Case Tutorials
        • Tutorial 1 - Navigating Market Tops and Bottoms
        • Tutorial 2 - Introduction to On-chain Activity
        • Tutorial 3 - Fundamentals of Proof-of-Work Mining
        • Tutorial 4 - Introduction to Supply Dynamics
      • Get started with Glassnode Metrics
      • Granular Cohorts for Key On-Chain Metrics
    • Metric Guides
      • Market Capitalization
      • Realized Capitalization
      • MVRV
        • LTH-MVRV
        • MVRV Ratio
        • MVRV-Z Score
        • STH-MVRV
      • SOPR
        • SOPR (Spent Output Profit Ratio)
        • aSOPR (Adjusted SOPR)
        • LTH-SOPR
        • STH-SOPR
      • Unrealized Profit/Loss
        • NUPL (Net Unrealized Profit/Loss)
        • Unrealized Profit
        • Unrealized Loss
        • LTH-NUPL
        • STH-NUPL
      • Realized Profit/Loss
        • Net Realized Profit/Loss
        • Realized Profit
        • Realized Loss
      • Coin Issuance
        • Puell Multiple
      • Stablecoin
        • SSR (Stablecoin Supply Ratio)
      • Coin Days Destroyed
        • CDD (Coin Days Destroyed)
        • Supply-Adjusted CDD
        • Binary CDD
        • CYD (Coin Years Destroyed)
        • Supply-Adjusted CYD
        • Reserve Risk
      • Liveliness
      • Dormancy
        • Average Coin Dormancy
        • Supply-Adjusted Dormancy
      • Lifespan
        • Spent Output Age Bands (SOAB)
        • Average Spent Output Lifespan (ASOL)
        • Median Spent Output Lifespan (MSOL)
      • NVT
        • NVT Ratio
        • NVT Signal
        • Velocity
      • Stock to Flow
        • Stock to Flow Ratio
        • Stock to Flow Deflection
      • Price Distribution
        • URPD (UTXO Realized Price Distribution)
        • SOPD (Spent Output Price Distribution)
      • Accumulation Trend Score
      • Long and Short-Term Holder Supply
        • Supply Held by Long and Short-Term Holders
      • Profit/Loss (Supply)
        • Percent Supply in Profit
        • Supply in Profit
        • Supply in Loss
      • Age Distribution
        • HODL Waves
        • Realized Cap HODL Waves
      • Profit/Loss (UTXO)
        • Percent UTXOs in Profit
        • UTXOs in Profit
        • UTXOs in Loss
    • On-Chain Concepts
      • Entity-Adjusted Metrics
      • On-chain Glossary
      • Understanding UTXOs - The Gold Coin Analogy
      • UTXO vs. Account-Based Chains
    • Workbench Guide
  • ⚙️API
    • Introduction
    • API Key
    • API Credits
    • Metadata
    • Bulk metrics (beta)
    • Endpoints
      • Addresses
      • Bridges
      • Blockchain
      • Breakdowns
      • DeFi
      • Derivatives
      • Distribution
      • Entities
      • ETH 2.0
      • Fees
      • Indicators
      • Institutions
      • Lightning
      • Market
      • Mempool
      • Mining
      • Point-In-Time
      • Protocols
      • Signals
      • Supply
      • Transactions
  • ℹ️Further Information
    • Changelog
      • 2025
      • 2024
      • 2023
      • 2022
      • 2021
      • 2020
    • Support FAQ
    • Affiliate FAQs
    • Exchange Data: Transparency Notice
Powered by GitBook
On this page
  • Lightning Network Base Fee (Median)
  • Lightning Network Capacity
  • Lightning Network Channel Size (Mean)
  • Lightning Network Channel Size (Median)
  • Lightning Network Fee Rate (Median)
  • Lightning Network Gini Capacity Distribution
  • Lightning Network Gini Channel Distribution
  • Lightning Network Node Connectivity
  • Lightning Network Number of Channels
  • Lightning Network Number of Nodes
  1. API
  2. Endpoints

Lightning

PreviousInstitutionsNextMarket

Last updated 2 months ago

Lightning Network Base Fee (Median)

GET https://api.glassnode.com/v1/metrics/lightning/base_fee_median

The median base fee in the Lightning Network in Satoshi, derived from the channel graph. Base fees are fees that have to be paid for each payment that is routed through the channel. For payments between two peers that share a direct channel connection no fees have to be spent.

Query Parameters

Name
Type
Description

a*

string

asset id: BTC

s

integer

since, unix timestamp

u

integer

until, unix timestamp

i

string

frequency interval: 24h, 1h, 10m

f

string

format: csv, json

c

string

currency: native, usd

timestamp_format

string

timestamp format: unix or humanized (RFC 3339)

[{"t":1726790400,"v":1}]
unsupported asset

Lightning Network Capacity

GET https://api.glassnode.com/v1/metrics/lightning/network_capacity_sum

The total amount of BTC locked in the Lightning Network. The Bitcoin Lightning Network is a Layer 2 payment protocol built on top of the Bitcoin blockchain. It is designed to provide faster, cheaper, and more scalable transactions than traditional on-chain Bitcoin transactions.

Query Parameters

Name
Type
Description

a*

string

asset id: BTC

s

integer

since, unix timestamp

u

integer

until, unix timestamp

i

string

frequency interval: 10m, 1h, 24h

f

string

format: csv, json

c

string

currency: native, usd

timestamp_format

string

timestamp format: unix or humanized (RFC 3339)

[{"t":1726790400,"v":5207.48444973}]
unsupported asset

Lightning Network Channel Size (Mean)

GET https://api.glassnode.com/v1/metrics/lightning/channel_size_mean

The mean BTC size of public Lightning Network channels. The Lightning Network works by creating payment channels between two parties, where multiple transactions can be made without the need for each individual transaction to be recorded on the Bitcoin blockchain. These transactions are instead recorded off-chain, which makes them faster and cheaper.

Query Parameters

Name
Type
Description

a*

string

asset id: BTC

s

integer

since, unix timestamp

u

integer

until, unix timestamp

i

string

frequency interval: 10m, 1h, 24h

f

string

format: csv, json

c

string

currency: native, usd

timestamp_format

string

timestamp format: unix or humanized (RFC 3339)

[{"t":1726790400,"v":0.09410152785070204}]
unsupported asset

Lightning Network Channel Size (Median)

GET https://api.glassnode.com/v1/metrics/lightning/channel_size_median

The median BTC size of public Lightning Network channels. The Lightning Network works by creating payment channels between two parties, where multiple transactions can be made without the need for each individual transaction to be recorded on the Bitcoin blockchain. These transactions are instead recorded off-chain, which makes them faster and cheaper.

Query Parameters

Name
Type
Description

a*

string

asset id: BTC

s

integer

since, unix timestamp

u

integer

until, unix timestamp

i

string

frequency interval: 10m, 1h, 24h

f

string

format: csv, json

c

string

currency: native, usd

timestamp_format

string

timestamp format: unix or humanized (RFC 3339)

[{"t":1726790400,"v":0.01831257}]
unsupported asset

Lightning Network Fee Rate (Median)

GET https://api.glassnode.com/v1/metrics/lightning/fee_rate_median

The median fee rate in the Lightning Network, derived from the channel graph. On top of a base fee, fees for payments are proportional to the transferred amount. Values here are given in units sat / BTC. E.g., a value of 1000 indicates that a fee of 1000 Satoshi is required to transfer 1 BTC.

Query Parameters

Name
Type
Description

a*

string

asset id: BTC

s

integer

since, unix timestamp

u

integer

until, unix timestamp

i

string

frequency interval: 24h, 1h, 10m

f

string

format: csv, json

timestamp_format

string

timestamp format: unix or humanized (RFC 3339)

[{"t":1726790400,"v":10000}]
unsupported asset

Lightning Network Gini Capacity Distribution

GET https://api.glassnode.com/v1/metrics/lightning/gini_capacity_distribution

The Gini coefficient of the Lightning network capacity is a statistical measure of the distribution of Bitcoin capacity among the nodes on the Lightning Network. It is calculated by comparing the actual distribution of Bitcoin capacity among the nodes to a hypothetical uniform distribution. It ranges from 0 to 1, with 0 representing perfect equality and 1 representing maximum inequality. A higher Gini coefficient indicates a more unequal distribution of Bitcoin capacity among nodes, while a lower Gini coefficient indicates a more even distribution of Bitcoin capacity. The Gini coefficient of the Lightning network capacity can be used to monitor the degree of centralization and potential risks associated with a highly concentrated distribution of Bitcoin capacity.

Query Parameters

Name
Type
Description

a*

string

asset id: BTC

s

integer

since, unix timestamp

u

integer

until, unix timestamp

i

string

frequency interval: 24h, 1h, 10m

f

string

format: csv, json

timestamp_format

string

timestamp format: unix or humanized (RFC 3339)

[{"t":1726790400,"v":0.9699507988372439}]
unsupported asset

Lightning Network Gini Channel Distribution

GET https://api.glassnode.com/v1/metrics/lightning/gini_channel_distribution

The Gini coefficient of the Lightning network channel distribution is a statistical measure of the distribution of numbers of channels among the nodes on the Lightning Network. It is calculated by comparing the actual distribution of channels among the nodes to a hypothetical uniform distribution. It ranges from 0 to 1, with 0 representing perfect equality and 1 representing maximum inequality. A higher Gini coefficient indicates a more unequal distribution of channel numbers among nodes, while a lower Gini coefficient indicates a more even distribution of channel counts. The Gini coefficient of the Lightning network channel distribution can be used to monitor the degree of centralization and potential risks associated with a highly concentrated influence of network nodes.

Query Parameters

Name
Type
Description

a*

string

asset id: BTC

s

integer

since, unix timestamp

u

integer

until, unix timestamp

i

string

frequency interval: 24h, 1h, 10m

f

string

format: csv, json

timestamp_format

string

timestamp format: unix or humanized (RFC 3339)

[{"t":1726790400,"v":0.7425478169617953}]
unsupported asset

Lightning Network Node Connectivity

GET https://api.glassnode.com/v1/metrics/lightning/node_connectivity

The number of nodes in the Lightning Network that are connected via IP, TOR, or both.

Query Parameters

Name
Type
Description

a*

string

asset id: BTC

s

integer

since, unix timestamp

u

integer

until, unix timestamp

i

string

frequency interval: 24h, 1h, 10m

f

string

format: csv, json

timestamp_format

string

timestamp format: unix or humanized (RFC 3339)

[{"t":1726790400,"o":{"nodes_ip_and_tor":1265,"nodes_ip_only":1575,"nodes_tor_only":8143}}]
unsupported asset

Lightning Network Number of Channels

GET https://api.glassnode.com/v1/metrics/lightning/channels_count

The number of public Lightning Network channels. The Lightning Network works by creating payment channels between two parties, where multiple transactions can be made without the need for each individual transaction to be recorded on the Bitcoin blockchain. These transactions are instead recorded off-chain, which makes them faster and cheaper.

Query Parameters

Name
Type
Description

a*

string

asset id: BTC

s

integer

since, unix timestamp

u

integer

until, unix timestamp

i

string

frequency interval: 10m, 1h, 24h

f

string

format: csv, json

timestamp_format

string

timestamp format: unix or humanized (RFC 3339)

[{"t":1726790400,"v":55339}]
unsupported asset

Lightning Network Number of Nodes

GET https://api.glassnode.com/v1/metrics/lightning/nodes_count

The number of Lightning Network nodes.

Query Parameters

Name
Type
Description

a*

string

asset id: BTC

s

integer

since, unix timestamp

u

integer

until, unix timestamp

i

string

frequency interval: 10m, 1h, 24h

f

string

format: csv, json

timestamp_format

string

timestamp format: unix or humanized (RFC 3339)

[{"t":1726790400,"v":17103}]
unsupported asset

⚙️
View in Studio
View in Studio
View in Studio
View in Studio
View in Studio
View in Studio
View in Studio
View in Studio
View in Studio
View in Studio