# on receiving block 900303 here
$ date -u '+%Y-%m-%dT%H:%M:%SZ'
2025-06-08T07:22:45Z
# as written in the block header
2025-06-08T07:22:19Z

$ uptime   # since last reboot
 07:22:45 up 125 days, 19:02,  0 users,  load average: 1.59, 1.98, 2.12

$ battery.sh
123%, Power Supply Online

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

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

$ du -h -d1 .bitcoin/
11.2G	.bitcoin/indexes
2.4G	.bitcoin/signet
3.4M	.bitcoin/wallets
97.7G	.bitcoin/blocks
10.9G	.bitcoin/chainstate
122.2G	.bitcoin/

$ df -h .
Filesystem                Size      Used Available Use% Mounted on
/dev/sda3               911.4G    836.8G     73.7G  92% /

$ bitcoind -version
Bitcoin Core daemon version v29.99.0-4aa77b063d78
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
900303

$ BH=$(bitcoin-cli getblockhash 900303); echo $BH
00000000000000000001ade06c240e47c260150119e6f7d65b56fe45decda8d0

$ bitcoin-cli getblockheader 00000000000000000001ade06c240e47c260150119e6f7d65b56fe45decda8d0
{
  "hash": "00000000000000000001ade06c240e47c260150119e6f7d65b56fe45decda8d0",
  "confirmations": 1,
  "height": 900303,
  "version": 615636992,
  "versionHex": "24b1e000",
  "merkleroot": "fd32a4c5bae25da419d44e0ce694a07f44d0996519bafce92b4d78c7b17d6b5d",
  "time": 1749367339,
  "mediantime": 1749365897,
  "nonce": 2288019540,
  "bits": "17023774",
  "target": "0000000000000000000237740000000000000000000000000000000000000000",
  "difficulty": 126982285146989.3,
  "chainwork": "0000000000000000000000000000000000000000c9449ccf0613ea414c6a7e80",
  "nTx": 2156,
  "previousblockhash": "000000000000000000016b8b6b625e3e7ed42a6339aa8453848e336591c79c19"
}


$ echo $BH | tr 0 . | fold -w 4 | paste -d " " - - - -
.... .... .... ....
...1 ade. 6c24 .e47
c26. 15.1 19e6 f7d6
5b56 fe45 decd a8d.

$ : 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
900303 sf: ...1 ade. .e47 c26. 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 .
900303 sk: a8d. 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 .
900303 ak: 25dd 64

### niceblack moved to the end

$ bitcoin-cli getmempoolinfo
{
  "loaded": true,
  "size": 110,
  "bytes": 3706760,
  "usage": 14891664,
  "total_fee": 0.03742462,
  "maxmempool": 300000000,
  "mempoolminfee": 0.00001000,
  "minrelaytxfee": 0.00001000,
  "incrementalrelayfee": 0.00001000,
  "unbroadcastcount": 0,
  "fullrbf": true
}

$ gmm.sh
1009

## Current epoch estimation is -0.8%
## 1167 of 2016, i.e. 57%, 849 to go
## Current and previous two in numbers:
$ bitcoin-cli getnetworkhashps 2016
9.015073104389147e+20
$ bitcoin-cli getnetworkhashps 2016 899135
9.088485232729964e+20
$ bitcoin-cli getnetworkhashps 2016 897119
8.704557915859883e+20

$ bitcoin-cli gettxoutsetinfo muhash
{
  "height": 900303,
  "bestblock": "00000000000000000001ade06c240e47c260150119e6f7d65b56fe45decda8d0",
  "txouts": 169649016,
  "bogosize": 13285582110,
  "muhash": "abb868c38e0b6da19f93db1e1d3f3b13d6e2407c2c02fe9c7d779798b7cee3f8",
  "total_amount": 19875728.96491158,
  "total_unspendable_amount": 221.03508842,
  "block_info": {
    "prevout_spent": 642.88405172,
    "coinbase": 3.14352741,
    "new_outputs_ex_coinbase": 642.86552431,
    "unspendable": 0.00000000,
    "unspendables": {
      "genesis_block": 0.00000000,
      "bip30": 0.00000000,
      "scripts": 0.00000000,
      "unclaimed_rewards": 0.00000000
    }
  }
}

$ bitcoin-cli getblockstats 900303
{
  "avgfee": 859,
  "avgfeerate": 1,
  "avgtxsize": 1158,
  "blockhash": "00000000000000000001ade06c240e47c260150119e6f7d65b56fe45decda8d0",
  "feerate_percentiles": [
    1,
    1,
    1,
    2,
    3
  ],
  "height": 900303,
  "ins": 4930,
  "maxfee": 95923,
  "maxfeerate": 89,
  "maxtxsize": 383409,
  "medianfee": 248,
  "mediantime": 1749365897,
  "mediantxsize": 371,
  "minfee": 102,
  "minfeerate": 1,
  "mintxsize": 150,
  "outs": 5967,
  "subsidy": 312500000,
  "swtotal_size": 2394273,
  "swtotal_weight": 3575145,
  "swtxs": 2061,
  "time": 1749367339,
  "total_out": 64286552431,
  "total_size": 2497368,
  "total_weight": 3987525,
  "totalfee": 1852741,
  "txs": 2156,
  "utxo_increase": 1037,
  "utxo_size_inc": 61813,
  "utxo_increase_actual": -16,
  "utxo_size_inc_actual": -3063
}

$ bitcoin-cli getnettotals
{
  "totalbytesrecv": 2806655193,
  "totalbytessent": 6320536206,
  "timemillis": 1749367366032,
  "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-4aa77b063d78 - server 70016/Satoshi:29.99.0/

         ipv4     npr   total   block   libre
in         16       2      18
out        14       0      14       2       4
total      30       2      32

Local addresses: n/a


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

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

bc=900303
gbt=1231006505
bbt=1749367339

This is average time to mine a block
(1749367339-1231006505)/900303
bts=575.7620026124509054719294

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

-------------------------------------
Next palindrome will be 901109
predicted to happen at this time:
Fri Jun 13 16:16:43 UTC 2025

-------------------------------------
Current mining epoch number is 446.
The next fortnight happens in block
901152 and probably around this time:
Fri Jun 13 23:09:20 UTC 2025

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

f434f53bbc97875e
	659c0675cef9dd658d59ead92b4df28d729922790fec61eaf3a88b7b3f2663de
d3995ec2ee43f846
	54561cb2291993acdc240a4165cd673e046571dc0dbd7ff9b0f52c38fff31f1c
2ac2e0e82915f2e1
	c08ccd75a4f3b401f6f4fa39ea9709c8644e522c2318468255a579b973cba492
7383517bb743e2ea
	fd62624f8c23c83343ccb75eb92f8d89ee5605b27b48f35ab13d5dd79648f41c
80161aa10fc0285e
	d1f8d81113f5af44f91ce26f7ed4746131fdbd43f00b66a0152550c02ac9681c
ad0016d10f8c2868
	3d2a3c43d101e84443477c86d63612ac7f3d7396325b4fbec8f9bba4e0823396
ba3f42b32bb9a982
	17b689bed1eeea48364477ae5bfd322c2225266230cb363703fac36222e11e2a
f822f8fbdddc3496
	c07e49b9e402436e62a522281bf2c6c643c63aefb4f8711d666d7c21d67525f2
3a672dc19aec7afe
	5dfc3fde05c0486f988e1706daf2d63779402ca3a480a9422a31c9a7321f5f8e
b84b0a562bc7fbfd
	245eb3dfb540c0f75560ff55a3254e2255cae3068b44c2b83e1c9591a637bfb3
952c29ffb60124fb
	139cf60d3150be54839db2271cfb74df07cbb6e9dce715e63434de45695c66e7
5edd4df6e5dd001e
	0a663892c0f7dbcf525c45b69d75c6784918b04d73127e6ee119733051ec260e
348a1666d17bd5f7
	f2cf67c205daa21a36d79ed52e408f008db6e3285b5e9837621b824d774016ea
6a79af72ca9f6958
	c9b08c21c9d33106c4ec62501bdbc1a0dac4d4feecd8c579b73a3cb901f9ab33
524a03cbf24b1585
	530539112c4cf4e5a97f8a5f7c1ddb83c5042beda11932c5e500376685fb75df
6afa5fbcdaa81564
	49f392b7e365964c1acf22e370486dd2011aadd90b485a2d9c37aab2b1020849


$ niceblack.sh $BH $BC
           ____  ____  ____ 
          / __ \/ __ \/ __ \
         / /_/ / / / / / / /
         \__, / /_/ / /_/ / 
        /____/\____/\____/  

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

  ,----- .123 4567 89ab cdef -----,
  |                               |
  | ..   .... .... .... ....   .f |
  | 1.   ...1 ade. 6c24 .e47   1f |
  | 2.   c26. 15.1 19e6 f7d6   2f |
  | 3.   5b56 fe45 decd a8d.   3f |
  '===   ==== ==== ==== ====   ==='
   ak:   25dd 64