# on receiving block 904567 here
$ date -u '+%Y-%m-%dT%H:%M:%SZ'
2025-07-08T07:23:05Z
# as written in the block header
2025-07-08T07:22:38Z

$ uptime   # since last reboot
 07:23:04 up 155 days, 19:02,  0 users,  load average: 1.35, 1.17, 1.57

$ battery.sh
138%, Power Supply Online

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

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

$ du -h -d1 .bitcoin/
11.3G	.bitcoin/indexes
2.8G	.bitcoin/signet
3.8M	.bitcoin/wallets
97.7G	.bitcoin/blocks
10.8G	.bitcoin/chainstate
122.6G	.bitcoin/

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

$ bitcoind -version
Bitcoin Core daemon version v29.99.0-5f9c5597106e
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/license/MIT>

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

$ BH=$(bitcoin-cli getblockhash 904567); echo $BH
0000000000000000000046cd5bd99128933ae804103cbe50f48f40ba9d669cd4

$ bitcoin-cli getblockheader 0000000000000000000046cd5bd99128933ae804103cbe50f48f40ba9d669cd4
{
  "hash": "0000000000000000000046cd5bd99128933ae804103cbe50f48f40ba9d669cd4",
  "confirmations": 1,
  "height": 904567,
  "version": 797057024,
  "versionHex": "2f822000",
  "merkleroot": "7f2534a0ef1a83327fbe3d9e7bf429cd7a4cf8229117417e3a335ac4c0529b83",
  "time": 1751959358,
  "mediantime": 1751954699,
  "nonce": 3049845779,
  "bits": "17026816",
  "target": "0000000000000000000268160000000000000000000000000000000000000000",
  "difficulty": 116958512019762.1,
  "chainwork": "0000000000000000000000000000000000000000d0925263fd0f762f3221a2d0",
  "nTx": 1354,
  "previousblockhash": "000000000000000000012c36c31bab410248ce2a5451ca25d59772a7604b61f4"
}


$ echo $BH | tr 0 . | fold -w 4 | paste -d " " - - - -
.... .... .... ....
.... 46cd 5bd9 9128
933a e8.4 1.3c be5.
f48f 4.ba 9d66 9cd4

$ : 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
904567 sf: e8.4 1.3c be5. 4.ba M 

$ : 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 .
904567 sk: 9cd4 75

$ : 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 .
904567 ak: ece9 75

### niceblack moved to the end

$ bitcoin-cli getmempoolinfo
{
  "loaded": true,
  "size": 25772,
  "bytes": 11539625,
  "usage": 67565584,
  "total_fee": 0.06000000,
  "maxmempool": 300000000,
  "mempoolminfee": 0.00000100,
  "minrelaytxfee": 0.00000100,
  "incrementalrelayfee": 0.00000100,
  "unbroadcastcount": 0,
  "fullrbf": true
}

$ gmm.sh
519

## Current epoch estimation is +6.02%
## 1399 of 2016, i.e. 69%, 617 to go
## Current and previous two in numbers:
$ bitcoin-cli getnetworkhashps 2016
8.870939684033049e+20
$ bitcoin-cli getnetworkhashps 2016 903167
8.366861911869141e+20
$ bitcoin-cli getnetworkhashps 2016 901151
9.04687914735697e+20

$ bitcoin-cli gettxoutsetinfo muhash
{
  "height": 904567,
  "bestblock": "0000000000000000000046cd5bd99128933ae804103cbe50f48f40ba9d669cd4",
  "txouts": 167270496,
  "bogosize": 13105414302,
  "muhash": "96b54c826c79de18951f802c50b226a8bc9b7e167dad2dad1cffc49a804c6722",
  "total_amount": 19889053.95415880,
  "total_unspendable_amount": 221.04584120,
  "block_info": {
    "prevout_spent": 3811.17480436,
    "coinbase": 3.15422920,
    "new_outputs_ex_coinbase": 3811.14557516,
    "unspendable": 0.00000000,
    "unspendables": {
      "genesis_block": 0.00000000,
      "bip30": 0.00000000,
      "scripts": 0.00000000,
      "unclaimed_rewards": 0.00000000
    }
  }
}

$ bitcoin-cli getblockstats 904567
{
  "avgfee": 2160,
  "avgfeerate": 2,
  "avgtxsize": 936,
  "blockhash": "0000000000000000000046cd5bd99128933ae804103cbe50f48f40ba9d669cd4",
  "feerate_percentiles": [
    2,
    2,
    2,
    3,
    4
  ],
  "height": 904567,
  "ins": 7011,
  "maxfee": 148088,
  "maxfeerate": 302,
  "maxtxsize": 73807,
  "medianfee": 623,
  "mediantime": 1751954699,
  "mediantxsize": 225,
  "minfee": 0,
  "minfeerate": 0,
  "mintxsize": 150,
  "outs": 5788,
  "subsidy": 312500000,
  "swtotal_size": 632729,
  "swtotal_weight": 1459844,
  "swtxs": 1208,
  "time": 1751959358,
  "total_out": 381114557516,
  "total_size": 1266748,
  "total_weight": 3995920,
  "totalfee": 2922920,
  "txs": 1354,
  "utxo_increase": -1223,
  "utxo_size_inc": -90049,
  "utxo_increase_actual": -1274,
  "utxo_size_inc_actual": -95046
}

$ bitcoin-cli getnettotals
{
  "totalbytesrecv": 6014537694,
  "totalbytessent": 13121249176,
  "timemillis": 1751959385520,
  "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-5f9c5597106e - server 70016/Satoshi:29.99.0/

         ipv4     npr   total   block   libre
in         19       2      21
out        14       0      14       2       4
total      33       2      35

Local addresses: n/a


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

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

bc=904567
gbt=1231006505
bbt=1751959358

This is average time to mine a block
(1751959358-1231006505)/904567
bts=575.9134227609201298299298

Now let's multiply that by 1050000
which is the block number of next
halving and get the prediction:
Fri Mar  3 17:09:34 UTC 2028

-------------------------------------
Next palindrome will be 905509
predicted to happen at this time:
Mon Jul 14 14:04:28 UTC 2025

-------------------------------------
Current mining epoch number is 448.
The next fortnight happens in block
905184 and probably around this time:
Sat Jul 12 10:04:56 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

728a54fb2bae1004
	fb990c98e254b9065a14b849c71e63de92249e74b3e432589ae5dcb92352e38d
b3ed804c370d40e7
	a48bede8229790e6837a53a0c77257d4971a0afa377ceebe7db2742fb8dbc0b0
d47ff7e823c0fe98
	5401cbf99e32046b2baad1de220f62450eee22064561908c4af977587d4bf1b4
53bb91ceec877d95
	f10c2f050891aa1468f7884dd304809843cc837621e47425d8cb24e7354d2e44
c7e3e2a02f2ba24b
	2e5a47fe645cc5947a5d30bea3f360d0f0a63f8582a13586b6adf4cb9e298d7b
807efab60edcf18e
	561b262613400c60ba780a0e0ead671be7d829869d42072be96745284daa23a1
06958821f75a85e7
	613a5e798ccc08f94c468cb30f5f49d254fca9ccd180e8931e86a765933808c9
b580ea4cc1766007
	e37f3e383b2eb3e6961aec86fc5dbf124d4ed04f9751c99f86c6ce09314a9325
716217be0b59d813
	1b135df1a1353f7a20f1f9ec28bbec8a477b96fc1ebb44da7eb60b09faf65475
9dd1dd68fb58b439
	49ab9de4311bdcbdec5193c8f88563958f0e21406a86e40a51b3ec26ac8ade22
a6b9a6f6f661268a
	38312b5d64b69979205b0ceebc4eed0119446194d842adae1f50b5591550c5c8
96a5c538c60619ef
	f47b358e29969196aff108ad28310e25ef44f93203ab395cdc6fb5a951c6ecd2
2f8eec2e560370dd
	d0a02fa34216244407d293e79c19917486606ca258389fbdaee10e31b762c2aa
53b6e2c94ec995b6
	af78cf99d979b8df440959755686a0b76126f7c1cedd6f6e7e8e4f8f2921251e
333d0c7a4ad5d783
	7879279b163c4ab919acea16ae434fb5c84cf2091b479e237926ef354722a7bc
e7cf12860237795d
	ea464fdc33798343c911c76c650a42609a0e350722a6c4da0eeba9f5465801a1


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

     ___  __  _ _  ___   ______ 
    / _ \/  \| | || __| / /__  |
    \_, / () |_  _|__ \/ _ \/ / 
     /_/ \__/  |_||___/\___/_/  

  ,----- .123 4567 89ab cdef -----,
  |                               |
  | ..   .... .... .... ....   .f |
  | 1.   .... 46cd 5bd9 9128   1f |
  | 2.   933a e8.4 1.3c be5.   2f |
  | 3.   f48f 4.ba 9d66 9cd4   3f |
  '===   ==== ==== ==== ====   ==='
   ak:   ece9 75