Why Nostr? What is Njump?
2024-10-07 05:29:38

aftermath on Nostr: Hello satsleft! How do you get the number of sats left to mine? I get a different ...

Hello ! How do you get the number of sats left to mine? I get a different number.

$ bitcoin-cli gettxoutsetinfo muhash 864551
{
"height": 864551,
"bestblock": "0000000000000000000016f7033bf77aeb8c97da12a809e89beb17d204091af9",
"txouts": 185160056,
"bogosize": 14327789970,
"muhash": "1b1f688e38ce4e3163d48505eb6000d2c509a8cb7cb5b4a208c526280791340a",
"total_amount": 19764005.48978667,
"total_unspendable_amount": 219.51021333,
"block_info": {
"prevout_spent": 2413.29280321,
"coinbase": 3.16793672,
"new_outputs_ex_coinbase": 2413.24986649,
"unspendable": 0.00000000,
"unspendables": {
"genesis_block": 0.00000000,
"bip30": 0.00000000,
"scripts": 0.00000000,
"unclaimed_rewards": 0.00000000
}
}
}

So let's say the total_amount is t and in sats (i.e. without the decimal point). The total that will ever be mined is f = 2099999997690000 - do we agree on this? Now when I subtract t from f…
👋 A new block was found on the #Bitcoin network. We're at block height 864551, current #bitcoin price is $63458.19 and there are 123575935190011 #sats left to mine.
Author Public Key
npub176ydxdurt895gq076ctywjyaft6jn098z3tvckpcltl6v8y4j94q4l0ezd