<p>Yes, unlike Bitcoin you can't deduce the total number of coins in circulation from the current block height, you need historic difficulty data. Of course, there should be services that have already computed this and present it publicly.</p>

CC BY-SA 3.0
2014-01-12T14:18:08.887Z
By any chance do you know any services that offer the number of coins in circulation as an API?
Peter Vasilev
CC BY-SA 3.0
2014-01-12T18:36:48.843Z
@PeterVasilev: http://primecoin.21stcenturymoneytalk.org/ has this and other data about Primecoin. I found this via http://coinmarketcap.com/ which lists data about several coins.
Meni Rosenfeld
CC BY-SA 3.0
2014-01-13T09:10:28.330Z
Yeah, I saw that one too. However, they don't have any sort of working API
Peter Vasilev
CC BY-SA 3.0
2014-01-05T21:14:48.683Z
2014-01-05T21:14:48.683Z
Meni Rosenfeld
<p>According to Wikipedia:</p>

<p><a href="http://en.wikipedia.org/wiki/Primecoin" rel="nofollow">http://en.wikipedia.org/wiki/Primecoin</a></p>

<p>the reward given for finding a block is 999*(difficulty**2). So does that mean that you need historic data on the difficulty in order to calculate how many coins there are?</p>

CC BY-SA 3.0
2014-01-05T21:15:02.747Z
It's 999/(difficulty^2), not 999*(difficulty^2).
Meni Rosenfeld
<currencies>
Calculate the amount of Primecoin(XPM) mined/created so far
Peter Vasilev
# Calculate the amount of Primecoin(XPM) mined/created so far

(Asked by: username_0 on 2014-01-05)

According to Wikipedia:

<http://en.wikipedia.org/wiki/Primecoin>

the reward given for finding a block is 999\*(difficulty\*\*2). So does that mean that you need historic data on the difficulty in order to calculate how many coins there are?

**Tags:** currencies

> **Comments:**
> **username_1**: It's 999/(difficulty^2), not 999*(difficulty^2).  

---

## 1 answers

### Answer by username_1 on 2014-01-05. Score: 0 | Accepted answer

Yes, unlike Bitcoin you can't deduce the total number of coins in circulation from the current block height, you need historic difficulty data. Of course, there should be services that have already computed this and present it publicly.

> **Comments:**
> **username_0**: By any chance do you know any services that offer the number of coins in circulation as an API?  
> **username_1**: @PeterVasilev: http://primecoin.21stcenturymoneytalk.org/ has this and other data about Primecoin. I found this via http://coinmarketcap.com/ which lists data about several coins.  
> **username_0**: Yeah, I saw that one too. However, they don't have any sort of working API  

---

