# on receiving block 897266 here
$ date -u '+%Y-%m-%dT%H:%M:%SZ'
2025-05-18T14:46:53Z
# as written in the block header
2025-05-18T14:46:25Z

$ uptime   # since last reboot
 14:46:53 up 105 days,  2:26,  0 users,  load average: 1.53, 1.25, 1.42

$ battery.sh
123%, Power Supply Online

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

$ grep ^MemAvailable /proc/meminfo
MemAvailable:    1800108 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.8G	.bitcoin/

$ df -h .
Filesystem                Size      Used Available Use% Mounted on
/dev/sda3               911.4G    836.5G     73.9G  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
897266

$ BH=$(bitcoin-cli getblockhash 897266); echo $BH
00000000000000000000664e209680227797f560cf2e5cfdce773dab998a82a2

$ bitcoin-cli getblockheader 00000000000000000000664e209680227797f560cf2e5cfdce773dab998a82a2
{
  "hash": "00000000000000000000664e209680227797f560cf2e5cfdce773dab998a82a2",
  "confirmations": 1,
  "height": 897266,
  "version": 583671808,
  "versionHex": "22ca2000",
  "merkleroot": "352197b8fede45eee9ad05d2faf0bf0998e6a05e07237de2157ae12fcbcf7405",
  "time": 1747579585,
  "mediantime": 1747576853,
  "nonce": 3469974565,
  "bits": "17025049",
  "target": "0000000000000000000250490000000000000000000000000000000000000000",
  "difficulty": 121658450774825,
  "chainwork": "0000000000000000000000000000000000000000c40ddb066a0cb137f3e05451",
  "nTx": 3254,
  "previousblockhash": "00000000000000000000f1d73cebd9bffd986bae30d3fcc1540a2b3c3f7e4b0c"
}


$ echo $BH | tr 0 . | fold -w 4 | paste -d " " - - - -
.... .... .... ....
.... 664e 2.96 8.22
7797 f56. cf2e 5cfd
ce77 3dab 998a 82a2

$ : 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
897266 sf: 2.96 8.22 f56. 82a2 

$ : 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 .
897266 sk: 82a2 85

$ : 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 .
897266 ak: 3f2a 85

### niceblack moved to the end

$ bitcoin-cli getmempoolinfo
{
  "loaded": true,
  "size": 30529,
  "bytes": 12125818,
  "usage": 57312976,
  "total_fee": 0.22471809,
  "maxmempool": 300000000,
  "mempoolminfee": 0.00001000,
  "minrelaytxfee": 0.00001000,
  "incrementalrelayfee": 0.00001000,
  "unbroadcastcount": 0,
  "fullrbf": true
}

$ gmm.sh
1851

## Current epoch estimation is +0.17%
## 146 of 2016, i.e. 7%, 1870 to go
## Current and previous two in numbers:
$ bitcoin-cli getnetworkhashps 2016
8.719929006508528e+20
$ bitcoin-cli getnetworkhashps 2016 897119
8.704557915859883e+20
$ bitcoin-cli getnetworkhashps 2016 895103
8.524479268489561e+20

$ bitcoin-cli gettxoutsetinfo muhash
{
  "height": 897266,
  "bestblock": "00000000000000000000664e209680227797f560cf2e5cfdce773dab998a82a2",
  "txouts": 171394761,
  "bogosize": 13417614859,
  "muhash": "cfeec88a9bfbe44b932dacba56bf9f53eba8c62e9b8b685f23d35e94a6becf07",
  "total_amount": 19866238.34933357,
  "total_unspendable_amount": 221.02566643,
  "block_info": {
    "prevout_spent": 4735.78272011,
    "coinbase": 3.19224006,
    "new_outputs_ex_coinbase": 4735.71548005,
    "unspendable": 0.00000000,
    "unspendables": {
      "genesis_block": 0.00000000,
      "bip30": 0.00000000,
      "scripts": 0.00000000,
      "unclaimed_rewards": 0.00000000
    }
  }
}

$ bitcoin-cli getblockstats 897266
{
  "avgfee": 2067,
  "avgfeerate": 6,
  "avgtxsize": 439,
  "blockhash": "00000000000000000000664e209680227797f560cf2e5cfdce773dab998a82a2",
  "feerate_percentiles": [
    4,
    4,
    4,
    5,
    9
  ],
  "height": 897266,
  "ins": 7154,
  "maxfee": 253892,
  "maxfeerate": 301,
  "maxtxsize": 13997,
  "medianfee": 804,
  "mediantime": 1747576853,
  "mediantxsize": 225,
  "minfee": 100,
  "minfeerate": 1,
  "mintxsize": 150,
  "outs": 9397,
  "subsidy": 312500000,
  "swtotal_size": 1156084,
  "swtotal_weight": 2891824,
  "swtxs": 2952,
  "time": 1747579585,
  "total_out": 473571548005,
  "total_size": 1431056,
  "total_weight": 3991712,
  "totalfee": 6724006,
  "txs": 3254,
  "utxo_increase": 2243,
  "utxo_size_inc": 165502,
  "utxo_increase_actual": 1964,
  "utxo_size_inc_actual": 142220
}

$ bitcoin-cli getnettotals
{
  "totalbytesrecv": 1029437870,
  "totalbytessent": 2457565574,
  "timemillis": 1747579614457,
  "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         29       2      31
out        10       0      10       2
total      39       2      41

Local addresses: n/a


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

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

bc=897266
gbt=1231006505
bbt=1747579585

This is average time to mine a block
(1747579585-1231006505)/897266
bts=575.7183536227232250823890

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

-------------------------------------
Next palindrome will be 897798
predicted to happen at this time:
Thu May 22 03:51:07 UTC 2025

-------------------------------------
Current mining epoch number is 445.
The next fortnight happens in block
899136 and probably around this time:
Sat May 31 01:49:38 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
20c0257705819c93
	730cad47d1750a5ade24c6e40d34e214c270fbd516d5acbfbf16d5b3898926e4
7c7e28421f245218
	0c24417b5cde4c77b339e5239555f51afd3cd71e3426d16aa48a25badc040bb6
f86edfd504e1b141
	9ad4cd98fdc380a1b7770a7e353e85ae20c4ffccea82ef13342c80ff71f4d269
0f7cf65020fa22cb
	01b2da53b6c9d077cdb65b30752a5968957e4bd0362bacf07e18f3b16fc96fd4
e8238212a61b49ad
	f01741f2ed5d59f125bcdd303325bbed07ccf6ad0cdd59c51d2682e1bb96f91c
c018dcad0d639387
	0a83341ef51a01c43aeb3da4eec4096d148d4c4a306ceae9998b19f6d7b60f2a
01120b4be340c418
	898f6a5a7d54561168720624e3b786dd1d6262951f263b49eb6e9ea2d1482b52
3f692aed0dc9da67
	0610b038b7a285f56e86ed59da703b8987b8858e34e539db75060d47901f8fae
9d6e5e1e72342b61
	1700fc45cf8044bbfb1a483feca00a3cf4f4ca6a251b37b2405550b2018c080e


$ niceblack.sh $BH $BC

    _|_|      _|_|    _|_|_|_|_|  
  _|    _|  _|    _|          _|  
    _|_|      _|_|_|        _|    
  _|    _|        _|      _|      
    _|_|    _|_|_|      _|        

     _|_|      _|_|_|    _|_|_|  
   _|    _|  _|        _|        
       _|    _|_|_|    _|_|_|    
     _|      _|    _|  _|    _|  
   _|_|_|_|    _|_|      _|_|    

  ,----- .123 4567 89ab cdef -----,
  |                               |
  | ..   .... .... .... ....   .f |
  | 1.   .... 664e 2.96 8.22   1f |
  | 2.   7797 f56. cf2e 5cfd   2f |
  | 3.   ce77 3dab 998a 82a2   3f |
  '===   ==== ==== ==== ====   ==='
   ak:   3f2a 85