<p>It depends on what you want.</p>
<p>If you want to know the amount of currency that has been available for miners to bring into circulation (the &quot;210000-1 blocks of 50 BTC, then 210000 blocks of 25 BTC, then 210000 blocks of 12.5 BTC, ...&quot; rule), the answer is no, there is no RPC that computes this. It's easy to do yourself, though.</p>
<p>If you want to compute the amount in circulation, namely the sum of all UTXO values, there is; it is computed by the <code>gettxoutsetinfo</code> command.</p>

CC BY-SA 4.0
2021-05-27T14:54:13.483Z
2021-05-27T15:17:44.337Z
2021-05-27T15:17:44.337Z
Pieter Wuille
<p>I've seen in other QT wallets I can get how many coins are in circulation typing a command like  <code>getsupply</code>, they also have this information in the output of the command <code>getblock &lt;hash&gt;</code>.</p>
<p>Is there a way to get this information using a RPC Command on Bitcoin Core?</p>

<bitcoin-core><json-rpc>
How do I get coin supply on Bitcoin core?
Luca Blight
# How do I get coin supply on Bitcoin core?

(Asked by: username_0 on 2021-05-27)

I've seen in other QT wallets I can get how many coins are in circulation typing a command like `getsupply`, they also have this information in the output of the command `getblock <hash>`.

Is there a way to get this information using a RPC Command on Bitcoin Core?

**Tags:** bitcoin-core, json-rpc


---

## 1 answers

### Answer by username_1 on 2021-05-27. Score: 4 | Accepted answer

It depends on what you want.

If you want to know the amount of currency that has been available for miners to bring into circulation (the "210000-1 blocks of 50 BTC, then 210000 blocks of 25 BTC, then 210000 blocks of 12.5 BTC, ..." rule), the answer is no, there is no RPC that computes this. It's easy to do yourself, though.

If you want to compute the amount in circulation, namely the sum of all UTXO values, there is; it is computed by the `gettxoutsetinfo` command.


---

