# on receiving block 902903 here
$ date -u '+%Y-%m-%dT%H:%M:%SZ'
2025-06-27T05:14:50Z
# as written in the block header
2025-06-27T05:14:38Z

$ uptime   # since last reboot
 05:14:49 up 144 days, 16:54,  0 users,  load average: 2.09, 2.17, 2.15

$ battery.sh
140%, Power Supply Online

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

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

$ du -h -d1 .bitcoin/
11.3G	.bitcoin/indexes
2.7G	.bitcoin/signet
3.4M	.bitcoin/wallets
97.7G	.bitcoin/blocks
10.8G	.bitcoin/chainstate
122.5G	.bitcoin/

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

$ BH=$(bitcoin-cli getblockhash 902903); echo $BH
000000000000000000016be026fedb91b1cca525dd3ab0ba11e8e5b6b58fe213

$ bitcoin-cli getblockheader 000000000000000000016be026fedb91b1cca525dd3ab0ba11e8e5b6b58fe213
{
  "hash": "000000000000000000016be026fedb91b1cca525dd3ab0ba11e8e5b6b58fe213",
  "confirmations": 1,
  "height": 902903,
  "version": 571285504,
  "versionHex": "220d2000",
  "merkleroot": "7ec18aaddafdf5c877a917ba2c18a9e24819773c1e6d5c10182cc40444620ea3",
  "time": 1751001278,
  "mediantime": 1750997948,
  "nonce": 1731457213,
  "bits": "17023a04",
  "target": "000000000000000000023a040000000000000000000000000000000000000000",
  "difficulty": 126411437451912.2,
  "chainwork": "0000000000000000000000000000000000000000cdd60507529425277b4cf060",
  "nTx": 2480,
  "previousblockhash": "000000000000000000012e2a5549113857fca66ebe13a611b55a8a9541881749"
}


$ echo $BH | tr 0 . | fold -w 4 | paste -d " " - - - -
.... .... .... ....
...1 6be. 26fe db91
b1cc a525 dd3a b.ba
11e8 e5b6 b58f e213

$ : 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
902903 sf: ...1 6be. b.ba e213 

$ : 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 .
902903 sk: e213 94

$ : 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 .
902903 ak: 4c25 94

### niceblack moved to the end

$ bitcoin-cli getmempoolinfo
{
  "loaded": true,
  "size": 72971,
  "bytes": 25375481,
  "usage": 172133168,
  "total_fee": 0.16075231,
  "maxmempool": 300000000,
  "mempoolminfee": 0.00000100,
  "minrelaytxfee": 0.00000100,
  "incrementalrelayfee": 0.00000100,
  "unbroadcastcount": 0,
  "fullrbf": true
}

$ gmm.sh
633

## Current epoch estimation is -6.43%
## 1751 of 2016, i.e. 86%, 265 to go
## Current and previous two in numbers:
$ bitcoin-cli getnetworkhashps 2016
8.464953813437646e+20
$ bitcoin-cli getnetworkhashps 2016 901151
9.04687914735697e+20
$ bitcoin-cli getnetworkhashps 2016 899135
9.088485232729964e+20

$ bitcoin-cli gettxoutsetinfo muhash
{
  "height": 902903,
  "bestblock": "000000000000000000016be026fedb91b1cca525dd3ab0ba11e8e5b6b58fe213",
  "txouts": 168042821,
  "bogosize": 13164800513,
  "muhash": "b17bf96472e731711b49242c7d8a55ab9e295ebf63313871862b21fbeee032be",
  "total_amount": 19883853.95610327,
  "total_unspendable_amount": 221.04389673,
  "block_info": {
    "prevout_spent": 4531.95101943,
    "coinbase": 3.16017986,
    "new_outputs_ex_coinbase": 4531.91583957,
    "unspendable": 0.00000000,
    "unspendables": {
      "genesis_block": 0.00000000,
      "bip30": 0.00000000,
      "scripts": 0.00000000,
      "unclaimed_rewards": 0.00000000
    }
  }
}

$ bitcoin-cli getblockstats 902903
{
  "avgfee": 1419,
  "avgfeerate": 3,
  "avgtxsize": 596,
  "blockhash": "000000000000000000016be026fedb91b1cca525dd3ab0ba11e8e5b6b58fe213",
  "feerate_percentiles": [
    2,
    2,
    2,
    3,
    5
  ],
  "height": 902903,
  "ins": 7486,
  "maxfee": 148088,
  "maxfeerate": 301,
  "maxtxsize": 73805,
  "medianfee": 489,
  "mediantime": 1750997948,
  "mediantxsize": 234,
  "minfee": 121,
  "minfeerate": 1,
  "mintxsize": 150,
  "outs": 6808,
  "subsidy": 312500000,
  "swtotal_size": 1129846,
  "swtotal_weight": 2591359,
  "swtxs": 2287,
  "time": 1751001278,
  "total_out": 453191583957,
  "total_size": 1479912,
  "total_weight": 3991623,
  "totalfee": 3517986,
  "txs": 2480,
  "utxo_increase": -678,
  "utxo_size_inc": -49945,
  "utxo_increase_actual": -813,
  "utxo_size_inc_actual": -61793
}

$ bitcoin-cli getnettotals
{
  "totalbytesrecv": 2097076336,
  "totalbytessent": 3550938363,
  "timemillis": 1751001290545,
  "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         20       2      22
out        14       0      14       2       4
total      34       2      36

Local addresses: n/a


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

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

bc=902903
gbt=1231006505
bbt=1751001278

This is average time to mine a block
(1751001278-1231006505)/902903
bts=575.9136884984450174104888

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

-------------------------------------
Next palindrome will be 903309
predicted to happen at this time:
Sun Jun 29 22:11:38 UTC 2025

-------------------------------------
Current mining epoch number is 447.
The next fortnight happens in block
903168 and probably around this time:
Sat Jun 28 23:38:15 UTC 2025

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

be6640a576d42893
	5b9deb5314e75bfa81c787e29c24ac72e2df85af99aee43d3f1743ad1c03039f
933e18b8edbce05c
	fecba41847d88adca56e58a731ba07766cc635aeb2816b5de7a7e003361bb04d
cc2f18a4bc431245
	d223157daf147fc4d1ca2b9822ff0676dfe50e6ba943f041594bfb45708823c0
0cf28f8d33c10e9d
	85ca64535ebdff3716be4f20aa11c1e88c0a691db110d21b799aa20aa24a00f7
952c29ffb60124fb
	6fd28e9939a3b80afa2a9db0302df280fb551719dd093223f577196d1e57e362
74026556dec85b12
	7bcf94d561e94ce637047658a07a8c0368c8fde60d8d4020b4930c5b31b07048
0e6c9b2cae4c6519
	ac225a689bc6ce1945f5607ae028a51822fe249bc2f160b8f0b84e9c6b43c54d
070fa09d81bddbfc
	96b3661ee28e2bfcf4ec993bb6e7895eb7d6f8bc65fb1c07138c04ba6bfc046b
23d7d434bb397eaf
	b5657ff5400643c40493f26e3da28b7f7645d8209747bbb3827f6e95d9f5fd64
a1299e79849a8cd5
	cdfbc99c6bba94bb69e1e0929a3ef691870075a1f90540899141fb51b95703d2
96a5c538c60619ef
	fb505b2de4d09cc37175a91a2eafcfabb08283059b920621fd1b465087ebb0f5
1956ddc4d37429f5
	e9e4809e3a3fbfc39672e2f8ff8d3a72484a701cb4207a793da246c6c5ee8a15


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

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

  ,----- .123 4567 89ab cdef -----,
  |                               |
  | ..   .... .... .... ....   .f |
  | 1.   ...1 6be. 26fe db91   1f |
  | 2.   b1cc a525 dd3a b.ba   2f |
  | 3.   11e8 e5b6 b58f e213   3f |
  '===   ==== ==== ==== ====   ==='
   ak:   4c25 94