# on receiving block 897479 here
$ date -u '+%Y-%m-%dT%H:%M:%SZ'
2025-05-20T01:09:06Z
# as written in the block header
2025-05-20T01:08:31Z

$ uptime   # since last reboot
 01:09:06 up 106 days, 12:48,  0 users,  load average: 2.43, 1.42, 1.46

$ battery.sh
124%, Power Supply Online

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

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

$ du -h -d1 .bitcoin/
11.2G	.bitcoin/indexes
2.0G	.bitcoin/signet
3.4M	.bitcoin/wallets
97.7G	.bitcoin/blocks
11.0G	.bitcoin/chainstate
121.9G	.bitcoin/

$ df -h .
Filesystem                Size      Used Available Use% Mounted on
/dev/sda3               911.4G    836.6G     73.8G  92% /

$ bitcoind -version
Bitcoin Core daemon version v29.99.0-92b05c17b147
Copyright (C) 2009-2025 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
897479

$ BH=$(bitcoin-cli getblockhash 897479); echo $BH
000000000000000000002f82293273d94c18685e501b035a8cb752b948e9d8d4

$ bitcoin-cli getblockheader 000000000000000000002f82293273d94c18685e501b035a8cb752b948e9d8d4
{
  "hash": "000000000000000000002f82293273d94c18685e501b035a8cb752b948e9d8d4",
  "confirmations": 1,
  "height": 897479,
  "version": 542654464,
  "versionHex": "20584000",
  "merkleroot": "334c67b098f17cfd7261db292fda4931b3a2b73bfaa7be5bb03a50c4da967811",
  "time": 1747703311,
  "mediantime": 1747698112,
  "nonce": 2063413403,
  "bits": "17025049",
  "target": "0000000000000000000250490000000000000000000000000000000000000000",
  "difficulty": 121658450774825,
  "chainwork": "0000000000000000000000000000000000000000c469eb59287eb8c773e93098",
  "nTx": 4160,
  "previousblockhash": "00000000000000000001fdb27938b7ba4a4c3acaad1ea7693406180dcbc50ca3"
}


$ echo $BH | tr 0 . | fold -w 4 | paste -d " " - - - -
.... .... .... ....
.... 2f82 2932 73d9
4c18 685e 5.1b .35a
8cb7 52b9 48e9 d8d4

$ : 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
897479 sf: 5.1b .35a d8d4 

$ : Following was the shortkode
$ : from which anecdote came
$ nz=$(echo $BH | fold -w 4 \
  | grep -cE '^[^0]{4}$')
$ z=$(echo $BH | fold -w 4 \
  | grep -c '^0000$')
$ nzzs=$(((${nz}<<4)+${z}))
$ printf "%s sk: " $BC
$ printf "%s %x\n" \
    $last \
    $nzzs \
    | tr 0 .
897479 sk: d8d4 95

$ : Following is an anecdote
$ all=$(echo $BH | fold -w 4 \
    | sed 's/^/0x/' \
    | paste -s | tr '\t' ^)
$ printf "%s ak: " $BC
$ printf "%04x %02x\n" \
    $(($all)) $nzzs \
    | tr 0 .
897479 ak: 4c5d 95

### niceblack moved to the end

$ bitcoin-cli getmempoolinfo
{
  "loaded": true,
  "size": 36813,
  "bytes": 19550457,
  "usage": 85228160,
  "total_fee": 0.35883037,
  "maxmempool": 300000000,
  "mempoolminfee": 0.00001000,
  "minrelaytxfee": 0.00001000,
  "incrementalrelayfee": 0.00001000,
  "unbroadcastcount": 0,
  "fullrbf": true
}

$ gmm.sh
1834

## Current epoch estimation is -0.84%
## 359 of 2016, i.e. 17%, 1657 to go
## Current and previous two in numbers:
$ bitcoin-cli getnetworkhashps 2016
8.631227222737111e+20
$ bitcoin-cli getnetworkhashps 2016 897119
8.704557915859883e+20
$ bitcoin-cli getnetworkhashps 2016 895103
8.524479268489561e+20

$ bitcoin-cli gettxoutsetinfo muhash
{
  "height": 897479,
  "bestblock": "000000000000000000002f82293273d94c18685e501b035a8cb752b948e9d8d4",
  "txouts": 171421799,
  "bogosize": 13419816418,
  "muhash": "1d777b23ace20c0f9b12b72bc9d18da70d97e2150d21bc9f918ad6d9d141583a",
  "total_amount": 19866903.97333178,
  "total_unspendable_amount": 221.02666822,
  "block_info": {
    "prevout_spent": 1754.95331477,
    "coinbase": 3.15789130,
    "new_outputs_ex_coinbase": 1754.92042347,
    "unspendable": 0.00000000,
    "unspendables": {
      "genesis_block": 0.00000000,
      "bip30": 0.00000000,
      "scripts": 0.00000000,
      "unclaimed_rewards": 0.00000000
    }
  }
}

$ bitcoin-cli getblockstats 897479
{
  "avgfee": 790,
  "avgfeerate": 3,
  "avgtxsize": 357,
  "blockhash": "000000000000000000002f82293273d94c18685e501b035a8cb752b948e9d8d4",
  "feerate_percentiles": [
    2,
    2,
    3,
    3,
    4
  ],
  "height": 897479,
  "ins": 7662,
  "maxfee": 61574,
  "maxfeerate": 47,
  "maxtxsize": 37173,
  "medianfee": 385,
  "mediantime": 1747698112,
  "mediantxsize": 228,
  "minfee": 121,
  "minfeerate": 1,
  "mintxsize": 150,
  "outs": 9038,
  "subsidy": 312500000,
  "swtotal_size": 1272874,
  "swtotal_weight": 3131455,
  "swtxs": 4011,
  "time": 1747703311,
  "total_out": 175492042347,
  "total_size": 1487998,
  "total_weight": 3991951,
  "totalfee": 3289130,
  "txs": 4160,
  "utxo_increase": 1376,
  "utxo_size_inc": 121050,
  "utxo_increase_actual": -1016,
  "utxo_size_inc_actual": -67296
}

$ bitcoin-cli getnettotals
{
  "totalbytesrecv": 1636529592,
  "totalbytessent": 3941180969,
  "timemillis": 1747703347696,
  "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 v29.99.0-92b05c17b147 - server 70016/Satoshi:29.99.0/

         ipv4     npr   total   block
in         30       2      32
out        11       0      11       2
total      41       2      43

Local addresses: n/a


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

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

bc=897479
gbt=1231006505
bbt=1747703311

This is average time to mine a block
(1747703311-1231006505)/897479
bts=575.7195770379284218032713

Now let's multiply that by 1050000
which is the block number of next
halving and get the prediction:
Wed Mar  1 08:37:16 UTC 2028

-------------------------------------
Next palindrome will be 897798
predicted to happen at this time:
Thu May 22 04:09:25 UTC 2025

-------------------------------------
Current mining epoch number is 445.
The next fortnight happens in block
899136 and probably around this time:
Sat May 31 02:07:58 UTC 2025

### v2_peerinfo are in v2_peerinfo-bitcoin.txt
$ bitcoin-cli getpeerinfo | grep -w 'v2' | uniq -c
     10     "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

051ed1309233d6d4
	b1ebd44295d36017d844074d02ff0db216ee3dbfca73d8ce4bddb9f3f10d0e99
f86edfd504e1b141
	9ad4cd98fdc380a1b7770a7e353e85ae20c4ffccea82ef13342c80ff71f4d269
0f7cf65020fa22cb
	01b2da53b6c9d077cdb65b30752a5968957e4bd0362bacf07e18f3b16fc96fd4
e8238212a61b49ad
	f01741f2ed5d59f125bcdd303325bbed07ccf6ad0cdd59c51d2682e1bb96f91c
c018dcad0d639387
	0a83341ef51a01c43aeb3da4eec4096d148d4c4a306ceae9998b19f6d7b60f2a
01120b4be340c418
	898f6a5a7d54561168720624e3b786dd1d6262951f263b49eb6e9ea2d1482b52
dfed512540bb4970
	5efdbbd6b884422a95d1ca8c25daa85d1c95f07c6899d996f9d8380221a32654
24c1784062ff2385
	b9de0bac903cd45282e64fb1dd52f7088cf06e46f4f20a3cee2c0413073ce4f7
7b264d6d67dafad3
	bd2661e3b91488e8f10a5834c567608f0b6ef9f3c36599e477dd9bd93ee9653b
9b7f63042061fdee
	b1677319b5c3dea6c417237cd92baeb0ce8e5856eb5a09fe489b4f714b5ee344


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

  ,----- .123 4567 89ab cdef -----,
  |                               |
  | ..   .... .... .... ....   .f |
  | 1.   .... 2f82 2932 73d9   1f |
  | 2.   4c18 685e 5.1b .35a   2f |
  | 3.   8cb7 52b9 48e9 d8d4   3f |
  '===   ==== ==== ==== ====   ==='
   ak:   4c5d 95