# on receiving block 882426 here
$ date -u '+%Y-%m-%dT%H:%M:%SZ'
2025-02-05T16:54:56Z
# as written in the block header
2025-02-05T16:54:56Z

$ uptime   # since last reboot
 16:54:55 up 3 days,  4:34,  0 users,  load average: 0.39, 0.60, 0.66

$ battery.sh
100%, Power Supply Online

$ uname -smnr
Linux singer 6.6.37-0-lts x86_64

$ grep ^MemAvailable /proc/meminfo
MemAvailable:    1859028 kB

$ du -h -d1 .bitcoin/
967.8M	.bitcoin/testnet4
10.9G	.bitcoin/indexes
1.4G	.bitcoin/signet
43.4M	.bitcoin/wallets
97.8G	.bitcoin/blocks
11.5G	.bitcoin/chainstate
15.0G	.bitcoin/testnet3
137.5G	.bitcoin/

$ df -h .
Filesystem                Size      Used Available Use% Mounted on
/dev/sda3               911.4G    832.3G     78.1G  91% /

$ bitcoind -version
Bitcoin Core version v28.1.0
Copyright (C) 2009-2024 The Bitcoin Core developers

Please contribute if you find Bitcoin Core useful. Visit
<https://bitcoincore.org/> for further information about the software.
The source code is available from <https://github.com/bitcoin/bitcoin>.

This is experimental software.
Distributed under the MIT software license, see the accompanying file COPYING
or <https://opensource.org/licenses/MIT>

$ BC=$(bitcoin-cli getblockcount); echo $BC
882426

$ BH=$(bitcoin-cli getblockhash 882426); echo $BH
00000000000000000001d4ffb455b3ffb78600b945b00e6b7cf58ff7d91c2df3

$ bitcoin-cli getblockheader $BH

$ echo $BH | tr 0 . | fold -w 4 | paste -d " " - - - -
.... .... .... ....
...1 d4ff b455 b3ff
b786 ..b9 45b. .e6b
7cf5 8ff7 d91c 2df3

/home/nsm/.bitcoin
$ : Following was the shortform
$ : from which shortkode came
$ last=${BH: -4}
$ 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
882426 sf: ...1 ..b9 45b. .e6b 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
882426 sk: 2df3 84

### niceblack moved to the end

$ bitcoin-cli getmempoolinfo
{
  "loaded": true,
  "size": 11417,
  "bytes": 7325430,
  "usage": 42417984,
  "total_fee": 0.09720365,
  "maxmempool": 500000000,
  "mempoolminfee": 0.00001000,
  "minrelaytxfee": 0.00001000,
  "incrementalrelayfee": 0.00001000,
  "unbroadcastcount": 85,
  "fullrbf": true
}

$ gmm.sh
1324

## Current epoch estimation is +2.18%
## 1434 of 2016, i.e. 71%, 582 to go
## Current and previous two in numbers:
$ bitcoin-cli getnetworkhashps 2016
7.904364405251781e+20
$ bitcoin-cli getnetworkhashps 2016 880991
7.735413493438086e+20
$ bitcoin-cli getnetworkhashps 2016 878975
7.90127532166539e+20

$ bitcoin-cli gettxoutsetinfo muhash
{
  "height": 882426,
  "bestblock": "00000000000000000001d4ffb455b3ffb78600b945b00e6b7cf58ff7d91c2df3",
  "txouts": 180114031,
  "bogosize": 14029367280,
  "muhash": "76b973f4fa2227b477c669aeaca308a631b0145db347d20f96ada23c295da016",
  "total_amount": 19819863.71820671,
  "total_unspendable_amount": 220.65679329,
  "block_info": {
    "prevout_spent": 6373.26224416,
    "coinbase": 3.17185441,
    "new_outputs_ex_coinbase": 6373.21538975,
    "unspendable": 0.00000000,
    "unspendables": {
      "genesis_block": 0.00000000,
      "bip30": 0.00000000,
      "scripts": 0.00000000,
      "unclaimed_rewards": 0.00000000
    }
  }
}

$ bitcoin-cli getblockstats 882426
{
  "avgfee": 1409,
  "avgfeerate": 4,
  "avgtxsize": 516,
  "blockhash": "00000000000000000001d4ffb455b3ffb78600b945b00e6b7cf58ff7d91c2df3",
  "feerate_percentiles": [
    3,
    3,
    3,
    4,
    6
  ],
  "height": 882426,
  "ins": 8455,
  "maxfee": 100000,
  "maxfeerate": 301,
  "maxtxsize": 71556,
  "medianfee": 666,
  "mediantime": 1738769021,
  "mediantxsize": 248,
  "minfee": 141,
  "minfeerate": 1,
  "mintxsize": 150,
  "outs": 8651,
  "subsidy": 312500000,
  "swtotal_size": 1626481,
  "swtotal_weight": 3630298,
  "swtxs": 3085,
  "time": 1738774496,
  "total_out": 637321538975,
  "total_size": 1717903,
  "total_weight": 3995986,
  "totalfee": 4685441,
  "txs": 3325,
  "utxo_increase": 196,
  "utxo_size_inc": 23594,
  "utxo_increase_actual": 130,
  "utxo_size_inc_actual": 18516
}

$ bitcoin-cli getnettotals
{
  "totalbytesrecv": 1432631679,
  "totalbytessent": 2063732194,
  "timemillis": 1738774496465,
  "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 v28.1.0 - server 70016/Satoshi:28.1.0/

         ipv4     npr   total   block  manual
in         29       2      31
out        11       0      11       2       1
total      40       2      42

Local addresses: n/a


$ bitcoin-cli -addrinfo
{
  "addresses_known": {
    "ipv4": 63958,
    "ipv6": 0,
    "onion": 0,
    "i2p": 0,
    "cjdns": 0,
    "total": 63958
  }
}

$ halving.sh 882426
=====================================
  Bitcoin Block Halving prediction
=====================================

bc=882426
gbt=1231006505
bbt=1738774496

This is average time to mine a block
(1738774496-1231006505)/882426
bts=575.4220927056855694578701

Now let's multiply that by 1050000
which is the block number of next
halving and get the prediction:
Sat Feb 26 17:51:17 UTC 2028

-------------------------------------
Next palindrome will be 883388
predicted to happen at this time:
Wed Feb 12 02:40:52 UTC 2025

-------------------------------------
Current mining epoch number is 437.
The next fortnight happens in block
883008 and probably around this time:
Sun Feb  9 13:56:31 UTC 2025

### v2_peerinfo are in v2_peerinfo-bitcoin.txt
$ bitcoin-cli getpeerinfo | grep -w 'v2' | uniq -c
     16     "transport_protocol_type": "v2",

$ bitcoin-cli getpeerinfo \
    | jq -r '.[]
      | select ( .transport_protocol_type == "v2" )
      | .addr + " " + .session_id' \
    | while read addr sid
      do
        a=$(echo ${addr%\]*} | tr -d '\[' | md5sum | cut -b-16);
        printf "%s\n\t%s\n" "$a" "$sid"
      done

9ec1956f7fb4792c
	d6a54ec38584f4b565202f09216ffd6b17345db22fd5cb5294383759588644e9
78d8c002de4985c0
	b61b95ab695a84c43a9f1e31468825fae022a7473f0778914525e8722201a1a8
8cb0b0e7b60328c7
	2ada0ef8b51e1230087de68f78847921a67d9c96fa3de6dcc16fd2daccbcd683
d36d5a3964212f6c
	5f89303bab84d2cd5c0b76eb69a33b831f3e4562dc00799a5671634644c5b2a9
4ea83aa8f5e35498
	20492724caf624bfa0b3e97dd4d31766402d848a56bb6b4a1e4e03abff106462
5f6d0e95b356e1b6
	e4f9cc7f4aac278ccfb740debfd2b599419c79c28274a5e31977812fe2959751
f6c30538aa94a6fd
	f9a114156780ffab9317d1c426be9f05c4b36041b8f136811606521f0bd613ee
cdb07469c8d7ed30
	bec0f337b3428195be4052d348b182763ebd14e9bcc7a69400245eea74ccab10
fa7f593562e0e52b
	f4841645e603201406b22029bb9c75348319797ca391e39f34a1c4c7824bdb1d
dcd3a21312bd8936
	e7b021becdd768da017bf7c386cae4a9f11ead5b7007fe0fee46605c3f61c615
37c7f821c95ca7c7
	bcc1181b947dbc3fdc898ea041c6c9b9ae9860d67e20b54edf2057e93027ec54
b0651e43edb30b61
	989748c6064438a070563c983ee74b2d2381c809373b87a688ec4ab8ee3dcc22
0e8cec32f8ea9729
	9587fc3a94190246369c264b7874c184a527f48d207f49fa2a4ecdd522bf5511
d3ba535a82cf3eca
	dd4d329d0ea9b11636421657bac9bfd6b7bf12d108d3890f48193daaff06e3a9
f690bb294e1da71c
	3632662cd53a094523935f2d711b4895e2de39036ec0edce42970d85d72a32b4
0589c530bee2e5ab
	978284385b4f4232b944bffed5bbc5cf48fc0ae2016774b2f73e01ea80665ac4


$ niceblack.sh $BH $BC
       _    _             _   
      | |  | |           | |  
      | |  | |  __   __  | |  
      |/ \_|/  /  \_/    |/_) 
       \_/ |__/\__/ \___/| \_/

       __  __  __      __  __ 
      /  \/  \/  )|  |/  )/   
      \__/\__/  / |__|_ /| __ 
      /  \/  \ /     | / |/  \
      \__/\__//___   |/___\__/

  ,---   .123 4567 89ab cdef   ---,
  | ..   .... .... .... ....   .f |
  | 1.   ...1 d4ff b455 b3ff   1f |
  | 2.   b786 ..b9 45b. .e6b   2f |
  | 3.   7cf5 8ff7 d91c 2df3   3f |
  '===   ==== ==== ==== ====   ==='
   sk:   2df3 84