Mining

get
Difficulty

https://api.glassnode.com/v1/metrics/mining/difficulty_latest
The current estimated number of hashes required to mine a block. Note: Bitcoin difficulty is often denoted as the relative difficulty with respect to the genesis block, which required approximately 2^32 hashes. For better comparison across blockchains, our values are denoted in raw hashes. View in Studio: https://studio.glassnode.com/metrics?a=BTC&m=mining.DifficultyLatest
Request
Response
Request
Query Parameters
a
required
string
asset symbol (see endpoints page for more details)
s
optional
integer
since, unix timestamp
u
optional
integer
until, unix timestamp
i
optional
string
frequency interval: 1h, 24h, 10m, 1month, 1w
f
optional
string
format: JSON, CSV
timestamp_format
optional
string
timestamp format: unix or humanized (RFC 3339)
Response
200: OK
[{"t":1614556800,"v":9.33044489295953e+22}]
400: Bad Request
unsupported asset

get
Hash Rate

https://api.glassnode.com/v1/metrics/mining/hash_rate_mean
The average estimated number of hashes per second produced by the miners in the network. View in Studio: https://studio.glassnode.com/metrics?a=BTC&m=mining.HashRateMean
Request
Response
Request
Query Parameters
a
required
string
asset symbol (see endpoints page for more details)
s
optional
integer
since, unix timestamp
u
optional
integer
until, unix timestamp
i
optional
string
frequency interval: 1h, 24h, 10m, 1month, 1w
f
optional
string
format: JSON, CSV
timestamp_format
optional
string
timestamp format: unix or humanized (RFC 3339)
Response
200: OK
[{"t":1614556800,"v":140552942222359000000}]
400: Bad Request
unsupported asset

get
Miner Revenue (Total)

https://api.glassnode.com/v1/metrics/mining/revenue_sum
The total miner revenue, i.e. fees plus newly minted coins. View in Studio: https://studio.glassnode.com/metrics?a=BTC&m=mining.RevenueSum
Request
Response
Request
Query Parameters
a
required
string
asset symbol (see endpoints page for more details)
s
optional
integer
since, unix timestamp
u
optional
integer
until, unix timestamp
i
optional
string
frequency interval: 1h, 24h
f
optional
string
format: JSON, CSV
c
optional
string
currency: NATIVE, USD
miner
optional
string
miner name (see /v1/metrics/mining/revenue_sum/miners for a full list)
timestamp_format
optional
string
timestamp format: unix or humanized (RFC 3339)
Response
200: OK
[{"t":1614556800,"v":934.33630841}]
400: Bad Request
unsupported asset

get
Miner Revenue (Fees)

https://api.glassnode.com/v1/metrics/mining/revenue_from_fees
The percentage of miner revenue derived from fees, i.e. fees divided by fees plus minted coins. View in Studio: https://studio.glassnode.com/metrics?a=BTC&m=mining.RevenueFromFees
Request
Response
Request
Query Parameters
a
required
string
asset symbol (see endpoints page for more details)
s
optional
integer
since, unix timestamp
u
optional
integer
until, unix timestamp
i
optional
string
frequency interval: 1h, 24h, 10m
f
optional
string
format: JSON, CSV
timestamp_format
optional
string
timestamp format: unix or humanized (RFC 3339)
Response
200: OK
[{"t":1614556800,"v":0.130398773239728}]
400: Bad Request
unsupported asset

get
Miner Revenue (Block Rewards)

https://api.glassnode.com/v1/metrics/mining/volume_mined_sum
The total amount of newly minted coins, i.e. block rewards. View in Studio: https://studio.glassnode.com/metrics?a=BTC&m=mining.VolumeMinedSum
Request
Response
Request
Query Parameters
a
required
string
asset symbol (see endpoints page for more details)
s
optional
integer
since, unix timestamp
u
optional
integer
until, unix timestamp
i
optional
string
frequency interval: 1h, 24h, 10m
f
optional
string
format: JSON, CSV
miner
optional
string
miner name (see /v1/metrics/mining/volume_mined_sum/miners for a full list)
timestamp_format
optional
string
timestamp format: unix or humanized (RFC 3339)
Response
200: OK
[{"t":1614556800,"v":812.5}]
400: Bad Request
unsupported asset

get
Miner Outflow Multiple

https://api.glassnode.com/v1/metrics/mining/miners_outflow_multiple
The Miner Outflow Multiple indicates periods where the amount of bitcoins flowing out of miner addresses is high with respect to its historical average. It is defined as the ratio of the miners' outflow (https://studio.glassnode.com/metrics?a=BTC&c=usd&m=transactions.TransfersVolumeFromMinersSum) and its 365 day MA. View in Studio: https://studio.glassnode.com/metrics?a=BTC&m=mining.MinersOutflowMultiple
Request
Response
Request
Query Parameters
a
required
string
asset symbol (see endpoints page for more details)
s
optional
integer
since, unix timestamp
u
optional
integer
until, unix timestamp
i
optional
string
frequency interval: 1h, 24h, 10m
f
optional
string
format: JSON, CSV
miner
optional
string
miner name (see /v1/metrics/mining/miners_outflow_multiple/miners for a full list)
timestamp_format
optional
string
timestamp format: unix or humanized (RFC 3339)
Response
200: OK
[{"t":1614556800,"v":3.9741262323907116}]
400: Bad Request
unsupported asset

get
Thermocap

https://api.glassnode.com/v1/metrics/mining/thermocap
Aggregate security spend, or "Thermocap", is the aggregated amount of coins paid to miners and serves as a proxy to mining resources spent. It serves a measure of the true capital flow into Bitcoin and is computed as the aggregate coinbase transactions multiplied by the price in USD at the time they were mined. This metric was first put forth by Nic Carter (https://twitter.com/nic__carter). View in Studio: https://studio.glassnode.com/metrics?a=BTC&m=mining.Thermocap
Request
Response
Request
Query Parameters
a
required
string
asset symbol (see endpoints page for more details)
s
optional
integer
since, unix timestamp
u
optional
integer
until, unix timestamp
i
optional
string
frequency interval: 1h, 24h
f
optional
string
format: JSON, CSV
timestamp_format
optional
string
timestamp format: unix or humanized (RFC 3339)
Response
200: OK
[{"t":1614556800,"v":22001246972.515}]
400: Bad Request
unsupported asset

get
Market Cap to Thermocap Ratio

https://api.glassnode.com/v1/metrics/mining/marketcap_thermocap_ratio
The Marketcap to Thermocap Ratio is simply defined as Marketcap / Thermocap, and can be used to assess if the asset's price is currently trading at a premium with respect to total security spend by miners. The ratio is adjusted to account for the increasing circulating supply over time. View in Studio: https://studio.glassnode.com/metrics?a=BTC&m=mining.MarketcapThermocapRatio
Request
Response
Request
Query Parameters
a
required
string
asset symbol (see endpoints page for more details)
s
optional
integer
since, unix timestamp
u
optional
integer
until, unix timestamp
i
optional
string
frequency interval: 1h, 24h
f
optional
string
format: JSON, CSV
timestamp_format
optional
string
timestamp format: unix or humanized (RFC 3339)
Response
200: OK
[{"t":1614556800,"v":0.0000021637976516006243}]
400: Bad Request
unsupported asset

get
Miner Unspent Supply

https://api.glassnode.com/v1/metrics/mining/miners_unspent_supply
The total mount of coins in coinbase transactions that have never been moved. View in Studio: https://studio.glassnode.com/metrics?a=BTC&m=mining.MinersUnspentSupply
Request
Response
Request
Query Parameters
a
required
string
asset symbol (see endpoints page for more details)
s
optional
integer
since, unix timestamp
u
optional
integer
until, unix timestamp
i
optional
string
frequency interval: 1month, 1w, 24h, 1h, 10m
f
optional
string
format: JSON, CSV
c
optional
string
currency: NATIVE, USD
timestamp_format
optional
string
timestamp format: unix or humanized (RFC 3339)
Response
200: OK
[{"t":1614556800,"v":1761881.22709079}]
400: Bad Request
unsupported asset