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 (only BTC , ETH, BCH)
s
optional
integer
since, unix timestamp
u
optional
integer
until, unix timestamp
i
optional
string
frequency interval, 1h, 10m or 24h (default)
f
optional
string
format, csv or json (default)
Response
200: OK
[
{
"t": 1576627200,
"v": 5.53056156509425e+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 (only BTC , ETH, BCH)
s
optional
integer
since, unix timestamp
u
optional
integer
until, unix timestamp
i
optional
string
frequency interval, 1h, 10m or 24h (default)
f
optional
string
format, csv or json (default)
Response
200: OK
[
{
"t": 1576627200,
"v": 85765979206174100000
},
...
]
400: Bad Request
unsupported asset

get
Miner Revenue

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 (only ETH , BTC, BCH)
s
optional
integer
since, unix timestamp
u
optional
integer
until, unix timestamp
i
optional
string
frequency interval, 1h or 24h (default)
f
optional
string
format, csv or json (default)
c
optional
string
currency, usd or native (default)
Response
200: OK
[
{
"t": 1579996800,
"v": 1798.07299079
},
...
]
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 (only ETH , BTC, BCH)
s
optional
integer
since, unix timestamp
u
optional
integer
until, unix timestamp
i
optional
string
frequency interval, 10m, 1h or 24h (default)
f
optional
string
format, csv or json (default)
Response
200: OK
[
{
"t": 1579996800,
"v": 0.00588017886045589
},
...
]
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 and its 365 day MA. View in Studio: https://studio.glassnode.com/metrics?a=BTC&m=mining.MinersOutflowMultiple
Request
Response
Request
Query Parameters
miner
optional
string
miner name, default aggregated (see miners_outflow_multiple/miners endpoint)
a
required
string
asset symbol (only BTC)
s
optional
integer
since, unix timestamp
u
optional
integer
until, unix timestamp
i
optional
string
frequency interval, 1h or 24h (default)
f
optional
string
format, csv or json (default)
Response
200: OK
[
{
"t": 1591488000,
"v": 0.5095429505418945
}
...
]
400: Bad Request
unsupported asset

get
Miner Outflow Multiple - Miners

https://api.glassnode.com/v1/metrics/mining/miners_outflow_multiple/miners
List of miners supported by Miner Outflow Multiple endpoint.
Request
Response
Request
Response
200: OK
{
BTC: [
'aggregated',
'other',
'F2Pool',
'SlushPool',
'AntPool',
'BitFury',
'DPool',
'HuobiPool',
'BTC.com',
'BitMinter',
'BTC.TOP',
'ViaBTC',
'1THash\u002658COIN',
'Poolin',
'Bixin',
],
};

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 as 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 (only ETH , BTC, LTC, BCH)
s
optional
integer
since, unix timestamp
u
optional
integer
until, unix timestamp
i
optional
string
frequency interval, 1h or 24h (default)
f
optional
string
format, csv or json (default)
Response
200: OK
[
{
"t": 1592784000,
"v": 17427867336.71164
}
...
]
400: Bad Request
unsupported asset

get
Marketcap 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 spent 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 (only ETH , BTC, LTC, BCH)
s
optional
integer
since, unix timestamp
u
optional
integer
until, unix timestamp
i
optional
string
frequency interval, 1h or 24h (default)
f
optional
string
format, csv or json (default)
Response
200: OK
[
{
"t": 1596412800,
"v": 6.309586018515327e-7
}
...
]
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
miner
optional
string
miner name, default aggregated (see volume_mined_sum/miners endpoint)
a
required
string
asset symbol (only BTC)
s
optional
integer
since, unix timestamp
u
optional
integer
until, unix timestamp
i
optional
string
frequency interval, 1h or 24h (default)
f
optional
string
format, csv or json (default)
Response
200: OK
[
{
"t": 1595808000,
"v": 931.25
}
...
]
400: Bad Request
unsupported asset

get
Miner Revenue (Block Rewards) - Miners

https://api.glassnode.com/v1/metrics/mining/volume_mined_sum/miners
List of miners supported by Miner Revenue (Block Rewards) endpoint.
Request
Response
Request
Response
200: OK
{
BTC: [
'aggregated',
'other',
'F2Pool',
'SlushPool',
'AntPool',
'BitFury',
'DPool',
'HuobiPool',
'BTC.com',
'BitMinter',
'BTC.TOP',
'ViaBTC',
'1THash\u002658COIN',
'Poolin',
'Bixin',
...
],
};

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 (only BTC)
s
optional
integer
since, unix timestamp
u
optional
integer
until, unix timestamp
i
optional
string
frequency interval, 1h or 24h (default)
f
optional
string
format, csv or json (default)
c
optional
string
currency, usd or native (default)
Response
200: OK
[
{
"t": 1595808000,
"v": 1766572.11148674
},
...
]
400: Bad Request
unsupported asset