# on receiving block 887766 here
$ date -u '+%Y-%m-%dT%H:%M:%SZ'
2025-03-14T11:25:18Z
# as written in the block header
2025-03-14T11:24:44Z

$ uptime   # since last reboot
 11:25:18 up 39 days, 23:05,  0 users,  load average: 1.18, 1.26, 1.22

$ battery.sh
96%, Power Supply Online

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

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

$ du -h -d1 .bitcoin/
11.0G	.bitcoin/indexes
1.5G	.bitcoin/signet
3.3M	.bitcoin/wallets
97.7G	.bitcoin/blocks
11.4G	.bitcoin/chainstate
121.7G	.bitcoin/

$ df -h .
Filesystem                Size      Used Available Use% Mounted on
/dev/sda3               911.4G    818.2G     92.3G  90% /

$ bitcoind -version
Bitcoin Core version v28.1.0
Copyright (C) 2009-2024 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/licenses/MIT>

$ BC=$(bitcoin-cli getblockcount); echo $BC
887766

$ BH=$(bitcoin-cli getblockhash 887766); echo $BH
000000000000000000016a521188486773247d31f0895d338eb9ee8c70256897

$ bitcoin-cli getblockheader 000000000000000000016a521188486773247d31f0895d338eb9ee8c70256897
{
  "hash": "000000000000000000016a521188486773247d31f0895d338eb9ee8c70256897",
  "confirmations": 1,
  "height": 887766,
  "version": 719216640,
  "versionHex": "2ade6000",
  "merkleroot": "71095fa92e59a6f80a226ce3a05efe14fc687e0800cf6a4251baded5c60d3882",
  "time": 1741951484,
  "mediantime": 1741948491,
  "nonce": 3693376812,
  "bits": "17028281",
  "difficulty": 112149504190349.3,
  "chainwork": "0000000000000000000000000000000000000000b46fdc6bafd78b7993b3573d",
  "nTx": 510,
  "previousblockhash": "00000000000000000001ceae6a6e6c2ccfb0e4e4cb7e56d1412547e139b480a3"
}


$ echo $BH | tr 0 . | fold -w 4 | paste -d " " - - - -
.... .... .... ....
...1 6a52 1188 4867
7324 7d31 f.89 5d33
8eb9 ee8c 7.25 6897

$ : 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
887766 sf: ...1 f.89 7.25 6897 

$ : 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 .
887766 sk: 6897 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 .
887766 ak: e894 94

### niceblack moved to the end

$ bitcoin-cli getmempoolinfo
{
  "loaded": true,
  "size": 11075,
  "bytes": 17502424,
  "usage": 86985824,
  "total_fee": 0.19755272,
  "maxmempool": 500000000,
  "mempoolminfee": 0.00001000,
  "minrelaytxfee": 0.00001000,
  "incrementalrelayfee": 0.00001000,
  "unbroadcastcount": 0,
  "fullrbf": true
}

$ gmm.sh
1128

## Current epoch estimation is +0.95%
## 726 of 2016, i.e. 36%, 1290 to go
## Current and previous two in numbers:
$ bitcoin-cli getnetworkhashps 2016
8.104781400977401e+20
$ bitcoin-cli getnetworkhashps 2016 887039
8.027983237538049e+20
$ bitcoin-cli getnetworkhashps 2016 885023
7.91465564126557e+20

$ bitcoin-cli gettxoutsetinfo muhash
{
  "height": 887766,
  "bestblock": "000000000000000000016a521188486773247d31f0895d338eb9ee8c70256897",
  "txouts": 174450125,
  "bogosize": 13633370142,
  "muhash": "b6aae9d6724266933d367b169471ee794efe22bf1e13b8842483f9f3d6228880",
  "total_amount": 19836550.96773893,
  "total_unspendable_amount": 220.90726107,
  "block_info": {
    "prevout_spent": 298.60890986,
    "coinbase": 3.14817288,
    "new_outputs_ex_coinbase": 298.58573698,
    "unspendable": 0.00000000,
    "unspendables": {
      "genesis_block": 0.00000000,
      "bip30": 0.00000000,
      "scripts": 0.00000000,
      "unclaimed_rewards": 0.00000000
    }
  }
}

$ bitcoin-cli getblockstats 887766
{
  "avgfee": 4552,
  "avgfeerate": 2,
  "avgtxsize": 4171,
  "blockhash": "000000000000000000016a521188486773247d31f0895d338eb9ee8c70256897",
  "feerate_percentiles": [
    2,
    2,
    2,
    2,
    2
  ],
  "height": 887766,
  "ins": 13894,
  "maxfee": 189360,
  "maxfeerate": 88,
  "maxtxsize": 205857,
  "medianfee": 429,
  "mediantime": 1741948491,
  "mediantxsize": 281,
  "minfee": 220,
  "minfeerate": 1,
  "mintxsize": 150,
  "outs": 1081,
  "subsidy": 312500000,
  "swtotal_size": 2105076,
  "swtotal_weight": 3923307,
  "swtxs": 449,
  "time": 1741951484,
  "total_out": 29858573698,
  "total_size": 2123189,
  "total_weight": 3995759,
  "totalfee": 2317288,
  "txs": 510,
  "utxo_increase": -12813,
  "utxo_size_inc": -920483,
  "utxo_increase_actual": -12833,
  "utxo_size_inc_actual": -922552
}

$ bitcoin-cli getnettotals
{
  "totalbytesrecv": 17440298833,
  "totalbytessent": 30874177630,
  "timemillis": 1741951519394,
  "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 v28.1.0 - server 70016/Satoshi:28.1.0/

         ipv4     npr   total   block  manual
in         34       2      36
out        11       0      11       2       1
total      45       2      47

Local addresses: n/a


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

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

bc=887766
gbt=1231006505
bbt=1741951484

This is average time to mine a block
(1741951484-1231006505)/887766
bts=575.5395041717027102832162

Now let's multiply that by 1050000
which is the block number of next
halving and get the prediction:
Mon Feb 28 04:05:59 UTC 2028

-------------------------------------
Next palindrome will be 887788
predicted to happen at this time:
Fri Mar 14 14:55:45 UTC 2025

-------------------------------------
Current mining epoch number is 440.
The next fortnight happens in block
889056 and probably around this time:
Sun Mar 23 01:38:49 UTC 2025

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

d91ece5e6e60af2a
	e94499f353491176cd46cadd470fd9cf8a2b3804cff524bd9835d8c758d37508
101beb0410b9ef63
	087be31ef28aac4f3490b4b63aff9fe581d63489f258e3b50298551a5ff5f05d
7d86c05aacd07b59
	ebf4fb32e6ed54498089b78a15a123caa5a273a731af2028dbac3667c3294cd6
58c64d82559e65a3
	57843b173541c5f889e64de7235a86083c88877f877f46df66bb5a35b5fc3002
2f3a15cc2c5fc075
	3fe570146c3cfd792b9ef03f7955f6a9603d3c4ccd068f0147bb5dc1c4293836
3cf142ccb3b880fc
	5d85ab568387957491196d50223e9fbd35ee512ce21e282333ae46ef06714a5e
565896850e2ea63d
	e622d15afce38ddffd7fe6bb8b2e9983e63784e1c21aebc3fe00fad8d928ae17
bbc706ee1d2be9c7
	6ac5060c7c7404e2b6f39aab9445f565c15d63fce89eeb0e00199e6fb09b8517
2a3dbfe5912bc7b2
	660f209508b09b1adf805feb4483a1c157139ab46180915a62f5345e3456f8ba


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

           __________ _____
          /__  / ___// ___/
            / / __ \/ __ \ 
           / / /_/ / /_/ / 
          /_/\____/\____/  

  ,----- .123 4567 89ab cdef -----,
  |                               |
  | ..   .... .... .... ....   .f |
  | 1.   ...1 6a52 1188 4867   1f |
  | 2.   7324 7d31 f.89 5d33   2f |
  | 3.   8eb9 ee8c 7.25 6897   3f |
  '===   ==== ==== ==== ====   ==='
   ak:   e894 94