# on receiving a block here
$ date -u '+%Y-%m-%d %H:%M:%SZ'
2024-05-05 06:08:31Z
# as written in the block header
2024-05-05 06:08:50Z
$ uptime # since last reboot
06:08:31 up 186 days, 16:25, 0 users, load average: 0.46, 0.26, 0.27
$ 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: 2131728 kB
$ du -h -d1 .bitcoin/
10.1G .bitcoin/indexes
1.9G .bitcoin/signet
12.9M .bitcoin/wallets
52.9G .bitcoin/blocks
11.3G .bitcoin/chainstate
3.4G .bitcoin/testnet3
79.8G .bitcoin/
$ df -h .
Filesystem Size Used Available Use% Mounted on
/dev/sda3 911.4G 672.0G 238.5G 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
842158
$ BH=$(bitcoin-cli getblockhash 842158); echo $BH
0000000000000000000044505c01718a21ff3fde78fe75d6e59f73c5518f65b6
$ bitcoin-cli getblockheader $BH
{
"hash": "0000000000000000000044505c01718a21ff3fde78fe75d6e59f73c5518f65b6",
"confirmations": 1,
"height": 842158,
"version": 587186176,
"versionHex": "22ffc000",
"merkleroot": "84473a5c607ed54e0f278695675fccd812409769ac33cf196355e1aed47b3114",
"time": 1714889330,
"mediantime": 1714883613,
"nonce": 1024037418,
"bits": "170331db",
"difficulty": 88104191118793.16,
"chainwork": "000000000000000000000000000000000000000077db3f7d6041588cb1519a42",
"nTx": 5379,
"previousblockhash": "0000000000000000000291f6137bc56658989d120abb62ba526656374263facd"
}
$ echo $BH | tr 0 . | fold -w 4 | paste -d " " - - - -
.... .... .... ....
.... 445. 5c.1 718a
21ff 3fde 78fe 75d6
e59f 73c5 518f 65b6
$ : 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
842158 sf: 445. 5c.1 65b6
$ : 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
842158 sk: 65b6 95
$ niceblack.sh $BH $BC
___ _ _ ___ __ _____ ___
/ _ \| || |__ \ /_ | ____|/ _ \
| (_) | || |_ ) | | | |__ | (_) |
> _ <|__ _/ / | |___ \ > _ <
| (_) | | |/ /_ | |___) | (_) |
\___/ |_|____| |_|____/ \___/
,--- .123 4567 89ab cdef ---,
| .. .... .... .... .... .f |
| 1. .... 445. 5c.1 718a 1f |
| 2. 21ff 3fde 78fe 75d6 2f |
| 3. e59f 73c5 518f 65b6 3f |
'=== ==== ==== ==== ==== ==='
sf: 445. 5c.1 65b6
sk: 65b6 95
................ .|...|...|.|....
$ bitcoin-cli getmempoolinfo
{
"loaded": true,
"size": 25923,
"bytes": 66146203,
"usage": 257815328,
"total_fee": 5.24614346,
"maxmempool": 1500000000,
"mempoolminfee": 0.00001000,
"minrelaytxfee": 0.00001000,
"incrementalrelayfee": 0.00001000,
"unbroadcastcount": 0,
"fullrbf": true
}
# current and previous two
$ bitcoin-cli getnetworkhashps -1
6.120055417526574e+20
$ bitcoin-cli getnetworkhashps -1 840671
6.304409353452951e+20
$ bitcoin-cli getnetworkhashps -1 838655
6.182828247491896e+20
$ bitcoin-cli gettxoutsetinfo muhash
{
"height": 842158,
"bestblock": "0000000000000000000044505c01718a21ff3fde78fe75d6e59f73c5518f65b6",
"txouts": 181656989,
"bogosize": 13955363336,
"muhash": "87ee263e07f4bfd066c0e910433f162c9d273c2aa29446ecb7b071ab2c904567",
"total_amount": 19694027.36766567,
"total_unspendable_amount": 219.50733433,
"block_info": {
"prevout_spent": 7355.21202300,
"coinbase": 3.55211200,
"new_outputs_ex_coinbase": 7354.78491100,
"unspendable": 0.00000000,
"unspendables": {
"genesis_block": 0.00000000,
"bip30": 0.00000000,
"scripts": 0.00000000,
"unclaimed_rewards": 0.00000000
}
}
}
$ bitcoin-cli getblockstats 842158
{
"avgfee": 7941,
"avgfeerate": 42,
"avgtxsize": 278,
"blockhash": "0000000000000000000044505c01718a21ff3fde78fe75d6e59f73c5518f65b6",
"feerate_percentiles": [
26,
34,
37,
39,
54
],
"height": 842158,
"ins": 7476,
"maxfee": 1426449,
"maxfeerate": 4879,
"maxtxsize": 86178,
"medianfee": 5199,
"mediantime": 1714883613,
"mediantxsize": 183,
"minfee": 459,
"minfeerate": 3,
"mintxsize": 150,
"outs": 13658,
"subsidy": 312500000,
"swtotal_size": 1462656,
"swtotal_weight": 3851265,
"swtxs": 5291,
"time": 1714889330,
"total_out": 735478491100,
"total_size": 1497800,
"total_weight": 3991841,
"totalfee": 42711200,
"txs": 5379,
"utxo_increase": 6182,
"utxo_size_inc": 417101,
"utxo_increase_actual": 2197,
"utxo_size_inc_actual": 174764
}
$ bitcoin-cli getnettotals
{
"totalbytesrecv": 1747936748,
"totalbytessent": 2086333102,
"timemillis": 1714889311750,
"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 52 0 19 71
out 6 5 0 11 2 1
total 58 5 19 82
Local addresses
176.112.184.220 port 8333 score 6173
gifm4fnj3vua664xhgeanx5fnpco3txkqy4amr4txbfsciiyrkxpf2qd.onion port 8333 score 4
$ bitcoin-cli -addrinfo
{
"addresses_known": {
"ipv4": 51939,
"ipv6": 8,
"onion": 14908,
"i2p": 0,
"cjdns": 0,
"total": 66855
}
}
$ halving.sh 842158
=====================================
Bitcoin Block Halving prediction
=====================================
bc=842158
gbt=1231006505
bbt=1714889330
This is average time to mine a block
(1714889330-1231006505)/842158
bts=574.5741896720215541245774
Now let's multiply that by 1050000
which is the block number of next
halving and get the prediction:
Wed Feb 16 10:32:58 UTC 2028
-------------------------------------
Next palindrome will be 842248
predicted to happen at this time:
Sun May 5 20:30:41 UTC 2024
-------------------------------------
Current mining epoch number is 417.
The next fortnight happens in block
842688 and probably around this time:
Wed May 8 18:44:14 UTC 2024
### v2_peerinfo are in v2_peerinfo-bitcoin.txt