<p>If you have a fully downloaded blockchain in your local machine, you can parse the raw database with <a href="https://github.com/ragestack/blockchain-parser" rel="nofollow noreferrer">this</a> script.</p>

<p>Then you can find in output text files transactions with <code>TX from hash</code> equal to 64 zeros, there is the coinbase transactions.</p>

<p>Each of this TX has outputs with <code>Value</code> fields. The sum of this Values is the mining reward that you trying to find.</p>

CC BY-SA 4.0
2020-05-04T18:23:08.050Z
2020-05-04T18:23:08.050Z
Denis Leonov
<p>I am trying to find out how much BTC has been mined over time hence I would like to query the rewards associated with a block. However, I cant seem to find the API endpoint from the BTC databases I searched.</p>

<p>Ideally, it will be something like www.blockchain.com, where we can see all the block data, including the rewards data.</p>

<p>Can anyone help me with this?</p>

<mining-reward>
How to query rewards data from a block
Yu Jie Tay
# How to query rewards data from a block

(Asked by: username_0 on 2020-05-04)

I am trying to find out how much BTC has been mined over time hence I would like to query the rewards associated with a block. However, I cant seem to find the API endpoint from the BTC databases I searched.

Ideally, it will be something like www.blockchain.com, where we can see all the block data, including the rewards data.

Can anyone help me with this?

**Tags:** mining-reward


---

## 1 answers

### Answer by username_1 on 2020-05-04. Score: 1

If you have a fully downloaded blockchain in your local machine, you can parse the raw database with [this](https://github.com/ragestack/blockchain-parser) script.

Then you can find in output text files transactions with `TX from hash` equal to 64 zeros, there is the coinbase transactions.

Each of this TX has outputs with `Value` fields. The sum of this Values is the mining reward that you trying to find.


---

