# on receiving block 904357 here
$ date -u '+%Y-%m-%dT%H:%M:%SZ'
2025-07-06T22:08:27Z
# as written in the block header
2025-07-06T22:08:17Z

$ uptime   # since last reboot
 22:08:27 up 154 days,  9:48,  0 users,  load average: 2.06, 2.73, 3.19

$ battery.sh
138%, Power Supply Online

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

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

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

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

$ BH=$(bitcoin-cli getblockhash 904357); echo $BH
000000000000000000017c24019c5bcaf040c65731adc12a38b1032f404e2402

$ bitcoin-cli getblockheader 000000000000000000017c24019c5bcaf040c65731adc12a38b1032f404e2402
{
  "hash": "000000000000000000017c24019c5bcaf040c65731adc12a38b1032f404e2402",
  "confirmations": 1,
  "height": 904357,
  "version": 536895488,
  "versionHex": "20006000",
  "merkleroot": "c14e6f95d5d79311af65116eaca780ecce51ac4994a29410c76fb95c623612d9",
  "time": 1751839697,
  "mediantime": 1751836978,
  "nonce": 3615799857,
  "bits": "17026816",
  "target": "0000000000000000000268160000000000000000000000000000000000000000",
  "difficulty": 116958512019762.1,
  "chainwork": "0000000000000000000000000000000000000000d03b0fb0584166455fe27f74",
  "nTx": 1517,
  "previousblockhash": "00000000000000000001d48cebe8057a5afdedf2cf5ceaeb0d2fd4628a9445ee"
}


$ echo $BH | tr 0 . | fold -w 4 | paste -d " " - - - -
.... .... .... ....
...1 7c24 .19c 5bca
f.4. c657 31ad c12a
38b1 .32f 4.4e 24.2

$ : 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
904357 sf: ...1 .19c f.4. .32f 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 .
904357 sk: 24.2 64

$ : 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 .
904357 ak: bf31 64

### niceblack moved to the end

$ bitcoin-cli getmempoolinfo
{
  "loaded": true,
  "size": 20123,
  "bytes": 15879581,
  "usage": 93220480,
  "total_fee": 0.07581631,
  "maxmempool": 300000000,
  "mempoolminfee": 0.00000100,
  "minrelaytxfee": 0.00000100,
  "incrementalrelayfee": 0.00000100,
  "unbroadcastcount": 0,
  "fullrbf": true
}

$ gmm.sh
476

## Current epoch estimation is +3.13%
## 1189 of 2016, i.e. 58%, 827 to go
## Current and previous two in numbers:
$ bitcoin-cli getnetworkhashps 2016
8.629212130135352e+20
$ bitcoin-cli getnetworkhashps 2016 903167
8.366861911869141e+20
$ bitcoin-cli getnetworkhashps 2016 901151
9.04687914735697e+20

$ bitcoin-cli gettxoutsetinfo muhash
{
  "height": 904357,
  "bestblock": "000000000000000000017c24019c5bcaf040c65731adc12a38b1032f404e2402",
  "txouts": 167518772,
  "bogosize": 13123757575,
  "muhash": "f4ca21ceb282ac92a5fcc805f30508a379f53e42acb058fcc55665df0a07554f",
  "total_amount": 19888397.70436433,
  "total_unspendable_amount": 221.04563567,
  "block_info": {
    "prevout_spent": 1328.86879976,
    "coinbase": 3.13811717,
    "new_outputs_ex_coinbase": 1328.85568259,
    "unspendable": 0.00000000,
    "unspendables": {
      "genesis_block": 0.00000000,
      "bip30": 0.00000000,
      "scripts": 0.00000000,
      "unclaimed_rewards": 0.00000000
    }
  }
}

$ bitcoin-cli getblockstats 904357
{
  "avgfee": 865,
  "avgfeerate": 2,
  "avgtxsize": 585,
  "blockhash": "000000000000000000017c24019c5bcaf040c65731adc12a38b1032f404e2402",
  "feerate_percentiles": [
    1,
    1,
    1,
    2,
    3
  ],
  "height": 904357,
  "ins": 4770,
  "maxfee": 140567,
  "maxfeerate": 104,
  "maxtxsize": 86437,
  "medianfee": 322,
  "mediantime": 1751836978,
  "mediantxsize": 224,
  "minfee": 0,
  "minfeerate": 0,
  "mintxsize": 150,
  "outs": 4401,
  "subsidy": 312500000,
  "swtotal_size": 760435,
  "swtotal_weight": 1745770,
  "swtxs": 1313,
  "time": 1751839697,
  "total_out": 132885568259,
  "total_size": 887416,
  "total_weight": 2253694,
  "totalfee": 1311717,
  "txs": 1517,
  "utxo_increase": -369,
  "utxo_size_inc": -32396,
  "utxo_increase_actual": -449,
  "utxo_size_inc_actual": -40040
}

$ bitcoin-cli getnettotals
{
  "totalbytesrecv": 5589145989,
  "totalbytessent": 12052312889,
  "timemillis": 1751839708182,
  "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         26       2      28
out        14       0      14       2       4
total      40       2      42

Local addresses: n/a


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

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

bc=904357
gbt=1231006505
bbt=1751839697

This is average time to mine a block
(1751839697-1231006505)/904357
bts=575.9148390349839333538266

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

-------------------------------------
Next palindrome will be 904409
predicted to happen at this time:
Mon Jul  7 06:27:24 UTC 2025

-------------------------------------
Current mining epoch number is 448.
The next fortnight happens in block
905184 and probably around this time:
Sat Jul 12 10:26:18 UTC 2025

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

1956ddc4d37429f5
	e9e4809e3a3fbfc39672e2f8ff8d3a72484a701cb4207a793da246c6c5ee8a15
728a54fb2bae1004
	fb990c98e254b9065a14b849c71e63de92249e74b3e432589ae5dcb92352e38d
7b9a1ca6d304d08a
	6704ec7448acad70860759e8be6448226643a62f363cb80c81a5411f9f5a4b12
08fff73d0f9c61e1
	194d3a4b8f77f5349bb06d54603a26a4ccd58de4ac27af73bd8b696e33a685cb
1195be88043551ce
	d20a686527243d5f71c111ec6307188988872d47a4a63827ed88a81774aa2fca
8b58bf2b34e0580d
	9f358524256122bee8dfcb987d6482600e1bf808cc4d5782affb5e0fad1339be
e7bb3d482e5189fd
	197cbee7eecdf20a27e48d4a40076c46a19ea423bd3ea874a834ee68e3bb5656
524a03cbf24b1585
	ac96e3a1ce3b6c2f5a22d652fae479f9ca5e52104821f9de92e9bbd402ad2d17
88e33d6cdf1c8ee9
	6eef292f68ab3a490405366f3aa223cb68e5793922cca646c6168ab377f4c4ae
3ee822f843b047c3
	01a1bd21be4680f26757407216c4b1805543de35bfd1ee0ce8b060b32f5b0a97
2b0692144af1130d
	0e67824ff45f6053aa9490ae71e05556e05c02f57263c3c77068b41c4cde2735
237473f4de223db3
	739bf6746144ef8fff258eaea24b6e8fb494df5baef3e4a778eeaad6128b7e9a
9b0cbecdbc5284d0
	94ce8b0f4d805499698686001296e1b93b52bfb0254e19f5498beb7392efc194
53ed8d63e0eff5a6
	9f3bcf7abacba11c812399cafe7ff8eb8306508031096fa5cb429cff2a193109
db3c29d4141c1dd0
	27acf2529cd494a3668be495a7011c957ce2cbcb78b8d9bd17a76fa3987373ea
56692c347885ee65
	80cbe79f9249800bde55d9cb81f2d11cae9d8c1fbb4aee88907408721f34bbbf
5edd4df6e5dd001e
	e4882072d8a49c4b8b3c21873d01f4d6331c3b12a0b33c4fc672fa5bff03949b
f4c5d9a43df982c0
	709be18045fe1e23113c5258ad5ccb6a5f456a99dffa0d5cda6da5eed6ea7fd0
a97a2ce43e21a7c2
	e6a8108e5b470bedb882ebd4c51a7d612313e62b0bf0fcf76017b4a36aa1b054


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

         ____  _____ ______ 
        |___ \| ____|____  |
          __) | |__     / / 
         |__ <|___ \   / /  
         ___) |___) | / /   
        |____/|____/ /_/    

  ,----- .123 4567 89ab cdef -----,
  |                               |
  | ..   .... .... .... ....   .f |
  | 1.   ...1 7c24 .19c 5bca   1f |
  | 2.   f.4. c657 31ad c12a   2f |
  | 3.   38b1 .32f 4.4e 24.2   3f |
  '===   ==== ==== ==== ====   ==='
   ak:   bf31 64