# on receiving block 904217 here
$ date -u '+%Y-%m-%dT%H:%M:%SZ'
2025-07-06T01:15:24Z
# as written in the block header
2025-07-06T01:15:12Z

$ uptime   # since last reboot
 01:15:24 up 153 days, 12:55,  0 users,  load average: 0.94, 1.76, 1.88

$ battery.sh
140%, Power Supply Online

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

$ grep ^MemAvailable /proc/meminfo
MemAvailable:    1525828 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    837.4G     73.0G  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
904217

$ BH=$(bitcoin-cli getblockhash 904217); echo $BH
000000000000000000001b889f9f6360c67d1223b8d1596eb519b5baf63b827a

$ bitcoin-cli getblockheader 000000000000000000001b889f9f6360c67d1223b8d1596eb519b5baf63b827a
{
  "hash": "000000000000000000001b889f9f6360c67d1223b8d1596eb519b5baf63b827a",
  "confirmations": 1,
  "height": 904217,
  "version": 701456384,
  "versionHex": "29cf6000",
  "merkleroot": "160b32f5c2376483904b5a88be5e85590276e3227f3d64097bf048bc6813e8f4",
  "time": 1751764512,
  "mediantime": 1751762395,
  "nonce": 2153347592,
  "bits": "17026816",
  "target": "0000000000000000000268160000000000000000000000000000000000000000",
  "difficulty": 116958512019762.1,
  "chainwork": "0000000000000000000000000000000000000000d000e338950d5ba97e63128c",
  "nTx": 4125,
  "previousblockhash": "0000000000000000000148f11d79fde16697452ed1679fa92837eabf01d55e77"
}


$ echo $BH | tr 0 . | fold -w 4 | paste -d " " - - - -
.... .... .... ....
.... 1b88 9f9f 636.
c67d 1223 b8d1 596e
b519 b5ba f63b 827a

$ : 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
904217 sf: 636. 827a 

$ : 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 .
904217 sk: 827a a5

$ : 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 .
904217 ak: a674 a5

### niceblack moved to the end

$ bitcoin-cli getmempoolinfo
{
  "loaded": true,
  "size": 49592,
  "bytes": 15898496,
  "usage": 103064400,
  "total_fee": 0.09749913,
  "maxmempool": 300000000,
  "mempoolminfee": 0.00000100,
  "minrelaytxfee": 0.00000100,
  "incrementalrelayfee": 0.00000100,
  "unbroadcastcount": 0,
  "fullrbf": true
}

$ gmm.sh
613

## Current epoch estimation is +0.81%
## 1049 of 2016, i.e. 52%, 967 to go
## Current and previous two in numbers:
$ bitcoin-cli getnetworkhashps 2016
8.43492544585105e+20
$ bitcoin-cli getnetworkhashps 2016 903167
8.366861911869141e+20
$ bitcoin-cli getnetworkhashps 2016 901151
9.04687914735697e+20

$ bitcoin-cli gettxoutsetinfo muhash
{
  "height": 904217,
  "bestblock": "000000000000000000001b889f9f6360c67d1223b8d1596eb519b5baf63b827a",
  "txouts": 167398498,
  "bogosize": 13115126481,
  "muhash": "232d7b6ce0e1a266605bcfe0f034372ed4269c922e2d375cc57a8c3c09fd66d2",
  "total_amount": 19887960.20454165,
  "total_unspendable_amount": 221.04545835,
  "block_info": {
    "prevout_spent": 544.57572670,
    "coinbase": 3.14425182,
    "new_outputs_ex_coinbase": 544.55647488,
    "unspendable": 0.00000000,
    "unspendables": {
      "genesis_block": 0.00000000,
      "bip30": 0.00000000,
      "scripts": 0.00000000,
      "unclaimed_rewards": 0.00000000
    }
  }
}

$ bitcoin-cli getblockstats 904217
{
  "avgfee": 466,
  "avgfeerate": 1,
  "avgtxsize": 400,
  "blockhash": "000000000000000000001b889f9f6360c67d1223b8d1596eb519b5baf63b827a",
  "feerate_percentiles": [
    1,
    1,
    1,
    2,
    2
  ],
  "height": 904217,
  "ins": 6049,
  "maxfee": 132541,
  "maxfeerate": 92,
  "maxtxsize": 73778,
  "medianfee": 234,
  "mediantime": 1751762395,
  "mediantxsize": 354,
  "minfee": 62,
  "minfeerate": 0,
  "mintxsize": 150,
  "outs": 12304,
  "subsidy": 312500000,
  "swtotal_size": 1506222,
  "swtotal_weight": 3411030,
  "swtxs": 4030,
  "time": 1751764512,
  "total_out": 54455647488,
  "total_size": 1651463,
  "total_weight": 3991994,
  "totalfee": 1925182,
  "txs": 4125,
  "utxo_increase": 6255,
  "utxo_size_inc": 406971,
  "utxo_increase_actual": 3176,
  "utxo_size_inc_actual": 229147
}

$ bitcoin-cli getnettotals
{
  "totalbytesrecv": 5162918504,
  "totalbytessent": 10762593008,
  "timemillis": 1751764524809,
  "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         24       2      26
out        14       0      14       2       4
total      38       2      40

Local addresses: n/a


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

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

bc=904217
gbt=1231006505
bbt=1751764512

This is average time to mine a block
(1751764512-1231006505)/904217
bts=575.9208586867326242123027

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

-------------------------------------
Next palindrome will be 904409
predicted to happen at this time:
Mon Jul  7 07:58:08 UTC 2025

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

### v2_peerinfo are in v2_peerinfo-bitcoin.txt
$ bitcoin-cli getpeerinfo | grep -w 'v2' | uniq -c
     18     "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
0e6c9b2cae4c6519
	5f19d67f5f23b28043e5a8a3eba18eda3a462c0fa3d42f03c0d2d517d0041049
a1299e79849a8cd5
	575f3a46a2f03e400c9c36f072bff891dd501c7cd5022e3cefb27d367187954e
88e33d6cdf1c8ee9
	6eef292f68ab3a490405366f3aa223cb68e5793922cca646c6168ab377f4c4ae
3ee822f843b047c3
	01a1bd21be4680f26757407216c4b1805543de35bfd1ee0ce8b060b32f5b0a97
2b0692144af1130d
	0e67824ff45f6053aa9490ae71e05556e05c02f57263c3c77068b41c4cde2735
2e87a04adfb4bcc9
	10ed95cb383f65a0ae97071704682f188278af9fee05a1895f83275b55b725f6
237473f4de223db3
	739bf6746144ef8fff258eaea24b6e8fb494df5baef3e4a778eeaad6128b7e9a
9b0cbecdbc5284d0
	94ce8b0f4d805499698686001296e1b93b52bfb0254e19f5498beb7392efc194
53ed8d63e0eff5a6
	9f3bcf7abacba11c812399cafe7ff8eb8306508031096fa5cb429cff2a193109
162f5844194149fc
	0d76369bdba989e1cda77daf76954cdd40f9c1e64a8a9a171d6a33a5157c8b72


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

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

  ,----- .123 4567 89ab cdef -----,
  |                               |
  | ..   .... .... .... ....   .f |
  | 1.   .... 1b88 9f9f 636.   1f |
  | 2.   c67d 1223 b8d1 596e   2f |
  | 3.   b519 b5ba f63b 827a   3f |
  '===   ==== ==== ==== ====   ==='
   ak:   a674 a5