# on receiving block 222960 here
$ date -u '+%Y-%m-%dT%H:%M:%SZ'
2024-11-21T07:21:48Z
# as written in the block header
2024-11-21T07:21:46Z

$ uptime   # since last reboot
 07:21:48 up 109 days, 39 min,  0 users,  load average: 0.55, 0.47, 0.38

$ battery.sh
95%, Power Supply Online

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

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

$ du -h -d1 .bitcoin/signet
404M	.bitcoin/signet/indexes
9.6M	.bitcoin/signet/wallets
2.4G	.bitcoin/signet/blocks
292M	.bitcoin/signet/chainstate
123M	.bitcoin/signet/electrs
3.2G	.bitcoin/signet

$ df -h .
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda3       912G  808G  104G  89% /

$ bitcoind --version
Bitcoin Core version v28.99.0-4835bba2cb13
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 -signet getblockcount); echo $BC
222960

$ BH=$(bitcoin-cli -signet getblockhash 222960); echo $BH
000000624dae8c4aedb4717586b0d768f5f99673be37e33fa9c40edd699b25b2

$ bitcoin-cli -signet getblockheader $BH
{
  "hash": "000000624dae8c4aedb4717586b0d768f5f99673be37e33fa9c40edd699b25b2",
  "confirmations": 1,
  "height": 222960,
  "version": 536870912,
  "versionHex": "20000000",
  "merkleroot": "d69587037f6eba286d70ad2206a626793c9720c621adb01c7a016b1271670eda",
  "time": 1732173706,
  "mediantime": 1732171681,
  "nonce": 14843364,
  "bits": "1e015274",
  "difficulty": 0.002954573816421218,
  "chainwork": "00000000000000000000000000000000000000000000000000000287890592f7",
  "nTx": 30,
  "previousblockhash": "0000000b27994d2a10a581aa09818202882e7817602168204331772836431037"
}

$ echo $BH | tr 0 . | fold -w 4 | paste -d " " - - - -
.... ..62 4dae 8c4a
edb4 7175 86b. d768
f5f9 9673 be37 e33f
a9c4 .edd 699b 25b2

$ : 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
222960 sf: ..62 86b. .edd 25b2 

$ : Following is the shortkode
$ last=${BH#${BH%????}}
$ nz=$(echo $BH | fold -w 4 \
  | grep -cE '^[^0]{4}$')
$ z=$(echo $BH | fold -w 4 \
  | grep -c '^0000$')
$ printf "%s sk: " $BC
$ printf "%s %x" $last \
  $(((${nz}<<4)+${z})) \
  | tr "0\n" ". "; echo
222960 sk: 25b2 c1

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

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

  ,---   .123 4567 89ab cdef   ---,
  | ..   .... ..62 4dae 8c4a   .f |
  | 1.   edb4 7175 86b. d768   1f |
  | 2.   f5f9 9673 be37 e33f   2f |
  | 3.   a9c4 .edd 699b 25b2   3f |
  '===   ==== ==== ==== ====   ==='
   sk:   25b2 c1

$ bitcoin-cli -signet getmempoolinfo
{
  "loaded": true,
  "size": 0,
  "bytes": 0,
  "usage": 32,
  "total_fee": 0.00000000,
  "maxmempool": 300000000,
  "mempoolminfee": 0.00000100,
  "minrelaytxfee": 0.00000100,
  "incrementalrelayfee": 0.00001000,
  "unbroadcastcount": 0,
  "fullrbf": true
}

## Current epoch estimation is +1.1%
## 1200 of 2016, i.e. 59%, 816 to go
## Current and previous two in numbers:
$ bitcoin-cli -signet getnetworkhashps 2016
21379.25044642745
$ bitcoin-cli -signet getnetworkhashps 2016 221759
21145.07110994882
$ bitcoin-cli -signet getnetworkhashps 2016 219743
21030.76173996619

$ bitcoin-cli -signet gettxoutsetinfo muhash
{
  "height": 222960,
  "bestblock": "000000624dae8c4aedb4717586b0d768f5f99673be37e33fa9c40edd699b25b2",
  "txouts": 4137585,
  "bogosize": 333383576,
  "muhash": "96cbe3afd0e79c42adb8ecd750eab337df8c81e8c46a51677d92a69fe12d658a",
  "total_amount": 10823728.19914825,
  "total_unspendable_amount": 296.80085175,
  "block_info": {
    "prevout_spent": 626353.25465945,
    "coinbase": 25.00009733,
    "new_outputs_ex_coinbase": 626353.25456212,
    "unspendable": 0.00000000,
    "unspendables": {
      "genesis_block": 0.00000000,
      "bip30": 0.00000000,
      "scripts": 0.00000000,
      "unclaimed_rewards": 0.00000000
    }
  }
}

$ bitcoin-cli -signet getblockstats 222960
{
  "avgfee": 335,
  "avgfeerate": 1,
  "avgtxsize": 349,
  "blockhash": "000000624dae8c4aedb4717586b0d768f5f99673be37e33fa9c40edd699b25b2",
  "feerate_percentiles": [
    1,
    1,
    1,
    2,
    2
  ],
  "height": 222960,
  "ins": 62,
  "maxfee": 3774,
  "maxfeerate": 4,
  "maxtxsize": 3415,
  "medianfee": 154,
  "mediantime": 1732171681,
  "mediantxsize": 205,
  "minfee": 142,
  "minfeerate": 1,
  "mintxsize": 193,
  "outs": 60,
  "subsidy": 2500000000,
  "swtotal_size": 10138,
  "swtotal_weight": 25864,
  "swtxs": 29,
  "time": 1732173706,
  "total_out": 62635325456212,
  "total_size": 10138,
  "total_weight": 25864,
  "totalfee": 9733,
  "txs": 30,
  "utxo_increase": -2,
  "utxo_size_inc": -131,
  "utxo_increase_actual": -3,
  "utxo_size_inc_actual": -300
}

$ bitcoin-cli -signet getnettotals
{
  "totalbytesrecv": 580732271,
  "totalbytessent": 3446314023,
  "timemillis": 1732173708570,
  "uploadtarget": {
    "timeframe": 86400,
    "target": 0,
    "target_reached": false,
    "serve_historical_blocks": true,
    "bytes_left_in_cycle": 0,
    "time_left_in_cycle": 0
  }
}

$ bitcoin-cli -signet -netinfo
Bitcoin Core client v28.99.0-4835bba2cb13 signet - server 70016/Satoshi:28.99.0/

         ipv4   total   block
in         11      11
out        10      10       2
total      21      21

Local addresses: n/a


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

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

31bd55844c7cfe2c
	fabc525963482a5a60226780cc8dfe4d04467498f880f64a1977f0125e35d54d
8ae1858c760d8013
	8d8a64e8156b0dd77aaed5d45d72161b9a401f4333622774cbd3a239555934d6
f5ff3afa0c83e1eb
	a181e11aea23c71721c92966c6f01b33959261b6d031285c834a30bcd8341754
ed6ccf696411369d
	886aae6f5f9b016494cc6210e11fec31b3728cab446e64b54266cb83e0a12bc0
7b8d41121124d6a0
	2897ca85cdb304b296929b53776f34cae6d035e7b61813b21dfa1101bb48e283
033dae5c6c8aaab6
	e525182dedaa87eb36eac600de00e91f877706346d5fe2652f42603e5136fa18