The first blocks had a 50 BTC subsidy
The subsidy of block 0 is unspendable
This subsidy is cut in half every 210.000 blocks
Block height now is 704558
This script (in Ruby) calculates the total amount of Bitcoins issued.
# first 210.000 blocks get 50 BTC as subsidy.
# for every 210.000 blocks, the subsidy is cut in half.
# global ...