# on receiving block 902915 here
$ date -u '+%Y-%m-%dT%H:%M:%SZ'
2025-06-27T07:12:35Z
# as written in the block header
2025-06-27T07:11:59Z

$ uptime   # since last reboot
 07:12:35 up 144 days, 18:52,  0 users,  load average: 1.37, 1.51, 1.52

$ battery.sh
139%, Power Supply Online

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

$ grep ^MemAvailable /proc/meminfo
MemAvailable:    1706464 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
902915

$ BH=$(bitcoin-cli getblockhash 902915); echo $BH
00000000000000000000116b79b545aaecee822e8e98c2a32cf95aadf2a13d5d

$ bitcoin-cli getblockheader 00000000000000000000116b79b545aaecee822e8e98c2a32cf95aadf2a13d5d
{
  "hash": "00000000000000000000116b79b545aaecee822e8e98c2a32cf95aadf2a13d5d",
  "confirmations": 1,
  "height": 902915,
  "version": 610238464,
  "versionHex": "245f8000",
  "merkleroot": "a194dbd95c479adbfd67095d5d74e99264b019bae087b26ea3fa2f094e8b82f7",
  "time": 1751008319,
  "mediantime": 1751004255,
  "nonce": 3996935836,
  "bits": "17023a04",
  "target": "000000000000000000023a040000000000000000000000000000000000000000",
  "difficulty": 126411437451912.2,
  "chainwork": "0000000000000000000000000000000000000000cddb68b23025011b28bf9870",
  "nTx": 1795,
  "previousblockhash": "00000000000000000000e3be0ef45a4ab06c087e5841a57057f5f47e487bbe7a"
}


$ echo $BH | tr 0 . | fold -w 4 | paste -d " " - - - -
.... .... .... ....
.... 116b 79b5 45aa
ecee 822e 8e98 c2a3
2cf9 5aad f2a1 3d5d

$ : 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
902915 sf: 3d5d 

$ : 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 .
902915 sk: 3d5d b5

$ : 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 .
902915 ak: b627 b5

### niceblack moved to the end

$ bitcoin-cli getmempoolinfo
{
  "loaded": true,
  "size": 70592,
  "bytes": 24613885,
  "usage": 166967776,
  "total_fee": 0.15140207,
  "maxmempool": 300000000,
  "mempoolminfee": 0.00000100,
  "minrelaytxfee": 0.00000100,
  "incrementalrelayfee": 0.00000100,
  "unbroadcastcount": 0,
  "fullrbf": true
}

$ gmm.sh
614

## Current epoch estimation is -6.49%
## 1763 of 2016, i.e. 87%, 253 to go
## Current and previous two in numbers:
$ bitcoin-cli getnetworkhashps 2016
8.459554532401734e+20
$ bitcoin-cli getnetworkhashps 2016 901151
9.04687914735697e+20
$ bitcoin-cli getnetworkhashps 2016 899135
9.088485232729964e+20

$ bitcoin-cli gettxoutsetinfo muhash
{
  "height": 902915,
  "bestblock": "00000000000000000000116b79b545aaecee822e8e98c2a32cf95aadf2a13d5d",
  "txouts": 168017177,
  "bogosize": 13162957493,
  "muhash": "989ed0c75ac8aaeecb937369ca1fafe1af773ccc6bbd9e61487a3aebda000469",
  "total_amount": 19883891.45610327,
  "total_unspendable_amount": 221.04389673,
  "block_info": {
    "prevout_spent": 2005.68777107,
    "coinbase": 3.15676027,
    "new_outputs_ex_coinbase": 2005.65601080,
    "unspendable": 0.00000000,
    "unspendables": {
      "genesis_block": 0.00000000,
      "bip30": 0.00000000,
      "scripts": 0.00000000,
      "unclaimed_rewards": 0.00000000
    }
  }
}

$ bitcoin-cli getblockstats 902915
{
  "avgfee": 1770,
  "avgfeerate": 3,
  "avgtxsize": 812,
  "blockhash": "00000000000000000000116b79b545aaecee822e8e98c2a32cf95aadf2a13d5d",
  "feerate_percentiles": [
    1,
    2,
    2,
    3,
    4
  ],
  "height": 902915,
  "ins": 8616,
  "maxfee": 148088,
  "maxfeerate": 355,
  "maxtxsize": 74105,
  "medianfee": 494,
  "mediantime": 1751004255,
  "mediantxsize": 226,
  "minfee": 101,
  "minfeerate": 1,
  "mintxsize": 150,
  "outs": 4562,
  "subsidy": 312500000,
  "swtotal_size": 1026744,
  "swtotal_weight": 2275794,
  "swtxs": 1656,
  "time": 1751008319,
  "total_out": 200565601080,
  "total_size": 1456775,
  "total_weight": 3995918,
  "totalfee": 3176027,
  "txs": 1795,
  "utxo_increase": -4054,
  "utxo_size_inc": -295191,
  "utxo_increase_actual": -4125,
  "utxo_size_inc_actual": -301821
}

$ bitcoin-cli getnettotals
{
  "totalbytesrecv": 2125124764,
  "totalbytessent": 3598981536,
  "timemillis": 1751008355871,
  "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         21       2      23
out        14       0      14       2       4
total      35       2      37

Local addresses: n/a


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

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

bc=902915
gbt=1231006505
bbt=1751008319

This is average time to mine a block
(1751008319-1231006505)/902915
bts=575.9138325159815531012851

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

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

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

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


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

  ,----- .123 4567 89ab cdef -----,
  |                               |
  | ..   .... .... .... ....   .f |
  | 1.   .... 116b 79b5 45aa   1f |
  | 2.   ecee 822e 8e98 c2a3   2f |
  | 3.   2cf9 5aad f2a1 3d5d   3f |
  '===   ==== ==== ==== ====   ==='
   ak:   b627 b5