BTC Lightning Network Statistics

This namespace contains endpoints to retrieve statistics on Lightning Network. We provide certain metrics such as the number of channel, nodes and network capacity from lightning network. For more detailed information, please refer to the description of each metric.

BTC Lightning Network Statistics

get

Lightning Network Statistics contains various metrics which are calculated from lightning network.

Supported Stats

Stas
Description

network_capacity

The total network capacity (sum of balances available across all lightning payment channels) (BTC)

network_capacity_usd

The total network capacity (sum of balances available across all lightning payment channels) (USD)

capacity_per_channel_mean

The average channel capacity (BTC)

capacity_per_channel_mean_usd

The average channel capacity (USD)

capacity_per_node_mean

The average node capacity (BTC)

capacity_per_node_mean_usd

The average node capacity (USD)

number_of_node

The total number of available nodes (Number)

number_of_channel

The total number of available payment channels (Number)

channel_per_node_mean

The average number of channels per node (Number)

node_age_days

The average day of duration of nodes (Number)

channel_age_days

The average day of duration of channels (Number)

base_fee_median

The median base fee of transactions (Sat)

base_fee_median_usd

The median base fee of transactions (USD)

fee_rate_median

The median fee rates of transactions (Sat)

fee_rate_median_usd

The median fee rates of transactions (USD)

Supported Windows

Supported Windows

hour, day*

(*) Default

Authorizations
AuthorizationstringRequired

For each API request, include this HTTP header: Authorization with the Bearer {access_token}. Bearer access token is the type of HTTP Authorization. You have to include access token to the HTTP header and note that leading bearer is required. You must include your access token in HTTP header in every request you make. The token is unique, issued for each client, and regularly changed(once a year). To obtain an access token, please upgrade your plan to Professional or Premium plan. You'll be able to see your access token on the API tab of your profile page after the subscription.

Query parameters
windowstringOptional

Currently, we support day and hour.

Default: dayExample: day
fromanyOptional

This defines the starting time for which data will be gathered, formatted as YYYYMMDDTHHMMSS (indicating YYYY-MM-DDTHH:MM:SS, UTC time). If window=day is used, it can also be formatted as YYYYMMDD (date). If window=block is used, you can also specify the exact block height (e.g. 510000). If this field is not specified, response will include data from the earliest time.

Example: 20191001T100000
toanyOptional

This defines the ending time for which data will be gathered, formatted as YYYYMMDDTHHMMSS (indicating YYYY-MM-DDTHH:MM:SS, UTC time). If window=day is used, it can also be formatted as YYYYMMDD (date). If window=block is used, you can also specify the exact block height (e.g. 510000). If this field is not specified, response will include data from the latest time.

Example: 20191001T103025
limitinteger · min: 1 · max: 100000Optional

The maximum number of entries to return before the latest data point (or before to if specified). This field ranges from 1 to 100,000.

Default: 100Example: 100
formatstringOptional

A format type about return message type. Supported formats are json, csv.

Default: jsonExample: json
Responses
chevron-right
200

BTC Lightning Network Stats

application/json
get
/btc/lightning-network/stats-in-total
200

BTC Lightning Network Stats

Last updated

Was this helpful?