# on receiving a block here
$ date -u '+%Y-%m-%d %H:%M:%SZ'
2024-04-26 09:20:36Z
# as written in the block header
2024-04-26 09:20:19Z
$ uptime # since last reboot
09:20:36 up 177 days, 19:37, 0 users, load average: 0.25, 0.33, 0.34
$ battery.sh
96%, Power Supply Online
$ uname -snrm
Linux singer 6.1.42-0-lts #1-Alpine SMP PREEMPT_DYNAMIC Thu, 27 Jul 2023 12:27:13 +0000 x86_64
$ grep ^MemAvailable /proc/meminfo
MemAvailable: 2154248 kB
$ du -h -d1 .bitcoin/
10.1G .bitcoin/indexes
1.9G .bitcoin/signet
12.9M .bitcoin/wallets
50.8G .bitcoin/blocks
11.2G .bitcoin/chainstate
3.4G .bitcoin/testnet3
77.5G .bitcoin/
$ df -h .
Filesystem Size Used Available Use% Mounted on
/dev/sda3 911.4G 669.7G 240.7G 74% /
$ bitcoind --version
Bitcoin Core version v27.0
Copyright (C) 2009-2024 The Bitcoin Core developers
Please contribute if you find Bitcoin Core useful. Visit
for further information about the software.
The source code is available from .
This is experimental software.
Distributed under the MIT software license, see the accompanying file COPYING
or
$ BC=$(bitcoin-cli getblockcount); echo $BC
840929
$ BH=$(bitcoin-cli getblockhash 840929); echo $BH
00000000000000000002c04c4a9d799aeee0712140d17b1c91c22ffc9a589de5
$ bitcoin-cli getblockheader $BH
{
"hash": "00000000000000000002c04c4a9d799aeee0712140d17b1c91c22ffc9a589de5",
"confirmations": 1,
"height": 840929,
"version": 574554112,
"versionHex": "223f0000",
"merkleroot": "e5c0667b0f5bf8ab31ee106d1be3133e80d842888bc7076261a5089c467ce94b",
"time": 1714123219,
"mediantime": 1714118536,
"nonce": 2895237966,
"bits": "170331db",
"difficulty": 88104191118793.16,
"chainwork": "0000000000000000000000000000000000000000765a8ddabd5bc6f7b628d6fc",
"nTx": 3335,
"previousblockhash": "00000000000000000002ab20ca51bd2f15b16c87a984eb473b6207e990e393aa"
}
$ echo $BH | tr 0 . | fold -w 4 | paste -d " " - - - -
.... .... .... ....
...2 c.4c 4a9d 799a
eee. 7121 4.d1 7b1c
91c2 2ffc 9a58 9de5
$ : Following is the shortform
$ last=${BH#${BH%????}}
$ a=$(echo $BH | cut -b-60 \
| fold -w 4 \
| grep -Ev '^(0000|[^0]{4})$')
$ R=$(echo $a $last | cut -b-20)
$ printf "%s sf: " $BC
$ { echo $R | grep "$last$" \
|| echo $R M; } | tr "0\n" ". "
echo
840929 sf: ...2 c.4c eee. 4.d1 M
$ : Following is the shortkode
$ last=${BH#${BH%????}}
$ nz=$(echo $BH | fold -w 4 \
| grep -cE '^[^0]{4}$')
$ z=$(echo $BH | fold -w 4 \
| grep -c '^0000$')
$ printf "%s sk: " $BC
$ printf "%s %x" $last \
$(((${nz}<<4)+${z})) \
| tr "0\n" ". "; echo
840929 sk: 9de5 84
$ niceblack.sh $BH $BC
| | |
_ \ | _ \ _| | /
_.__/_|\___/\__|_\_\
_ ) | | \ _ \_ ) _ \
_ \__ _|( |\_ / /\_ /
\___/ _|\__/ _/ ___| _/
,--- .123 4567 89ab cdef ---,
| .. .... .... .... .... .f |
| 1. ...2 c.4c 4a9d 799a 1f |
| 2. eee. 7121 4.d1 7b1c 2f |
| 3. 91c2 2ffc 9a58 9de5 3f |
'=== ==== ==== ==== ==== ==='
sf: ...2 c.4c eee. 4.d1 M
sk: 9de5 84
..............|. ||.......|..||..
$ bitcoin-cli getmempoolinfo
{
"loaded": true,
"size": 44311,
"bytes": 86890141,
"usage": 293032544,
"total_fee": 10.62290562,
"maxmempool": 300000000,
"mempoolminfee": 0.00005901,
"minrelaytxfee": 0.00001000,
"incrementalrelayfee": 0.00001000,
"unbroadcastcount": 0,
"fullrbf": true
}
# current and previous two
$ bitcoin-cli getnetworkhashps -1
6.367761434895364e+20
$ bitcoin-cli getnetworkhashps -1 840671
6.304409353452951e+20
$ bitcoin-cli getnetworkhashps -1 838655
6.182828247491896e+20
$ bitcoin-cli gettxoutsetinfo muhash
{
"height": 840929,
"bestblock": "00000000000000000002c04c4a9d799aeee0712140d17b1c91c22ffc9a589de5",
"txouts": 179967949,
"bogosize": 13818775089,
"muhash": "42239deca0d1c853832463f07a55e35aec99ad8dd749167c9da97f15464541a1",
"total_amount": 19690186.74269845,
"total_unspendable_amount": 219.50730155,
"block_info": {
"prevout_spent": 8987.02278525,
"coinbase": 3.81557261,
"new_outputs_ex_coinbase": 8986.33221264,
"unspendable": 0.00000000,
"unspendables": {
"genesis_block": 0.00000000,
"bip30": 0.00000000,
"scripts": 0.00000000,
"unclaimed_rewards": 0.00000000
}
}
}
$ bitcoin-cli getblockstats 840929
{
"avgfee": 20713,
"avgfeerate": 69,
"avgtxsize": 475,
"blockhash": "00000000000000000002c04c4a9d799aeee0712140d17b1c91c22ffc9a589de5",
"feerate_percentiles": [
42,
42,
44,
50,
120
],
"height": 840929,
"ins": 7836,
"maxfee": 1111520,
"maxfeerate": 1423,
"maxtxsize": 59624,
"medianfee": 9282,
"mediantime": 1714118536,
"mediantxsize": 225,
"minfee": 2260,
"minfeerate": 10,
"mintxsize": 150,
"outs": 10148,
"subsidy": 312500000,
"swtotal_size": 1478511,
"swtotal_weight": 3563688,
"swtxs": 3120,
"time": 1714123219,
"total_out": 898633221264,
"total_size": 1585559,
"total_weight": 3991880,
"totalfee": 69057261,
"txs": 3335,
"utxo_increase": 2312,
"utxo_size_inc": 165477,
"utxo_increase_actual": 1407,
"utxo_size_inc_actual": 107380
}
$ bitcoin-cli getnettotals
{
"totalbytesrecv": 762510005,
"totalbytessent": 1447819076,
"timemillis": 1714123237193,
"uploadtarget": {
"timeframe": 86400,
"target": 0,
"target_reached": false,
"serve_historical_blocks": true,
"bytes_left_in_cycle": 0,
"time_left_in_cycle": 0
}
}
$ bitcoin-cli -netinfo
Bitcoin Core client v27.0 - server 70016/Satoshi:27.0.0/
ipv4 onion npr total block manual
in 50 0 25 75
out 8 3 0 11 2 1
total 58 3 25 86
Local addresses
176.112.184.220 port 8333 score 2540
gifm4fnj3vua664xhgeanx5fnpco3txkqy4amr4txbfsciiyrkxpf2qd.onion port 8333 score 4
$ bitcoin-cli -addrinfo
{
"addresses_known": {
"ipv4": 54003,
"ipv6": 9,
"onion": 15100,
"i2p": 0,
"cjdns": 0,
"total": 69112
}
}
$ halving.sh 840929
=====================================
Bitcoin Block Halving prediction
=====================================
bc=840929
gbt=1231006505
bbt=1714123219
This is average time to mine a block
(1714123219-1231006505)/840929
bts=574.5028884687191561723330
Now let's multiply that by 1050000
which is the block number of next
halving and get the prediction:
Tue Feb 15 13:45:12 UTC 2028
-------------------------------------
Next palindrome will be 841148
predicted to happen at this time:
Sat Apr 27 20:17:15 UTC 2024
-------------------------------------
Current mining epoch number is 417.
The next fortnight happens in block
842688 and probably around this time:
Wed May 8 02:02:49 UTC 2024
### v2_peerinfo are in v2_peerinfo-bitcoin.txt