# on receiving block 222957 here
$ date -u '+%Y-%m-%dT%H:%M:%SZ'
2024-11-21T06:55:38Z
# as written in the block header
2024-11-21T06:55:38Z

$ uptime   # since last reboot
 06:55:38 up 109 days, 13 min,  0 users,  load average: 0.31, 0.40, 0.41

$ battery.sh
95%, Power Supply Online

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

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

$ du -h -d1 .bitcoin/signet
404M	.bitcoin/signet/indexes
9.5M	.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
222957

$ BH=$(bitcoin-cli -signet getblockhash 222957); echo $BH
00000058e20d57a3d806d987c29fa123d847857a5a6845fe32404071a5743e3d

$ bitcoin-cli -signet getblockheader $BH
{
  "hash": "00000058e20d57a3d806d987c29fa123d847857a5a6845fe32404071a5743e3d",
  "confirmations": 1,
  "height": 222957,
  "version": 536870912,
  "versionHex": "20000000",
  "merkleroot": "3c513c55d8e9557b95c9c80c6bbb39d93649bce2bd6bb682d764a293cf93916e",
  "time": 1732172138,
  "mediantime": 1732170739,
  "nonce": 1463455,
  "bits": "1e015274",
  "difficulty": 0.002954573816421218,
  "chainwork": "0000000000000000000000000000000000000000000000000000028786c0ac22",
  "nTx": 23,
  "previousblockhash": "00000119dc5cfe9987a49fc5dc73009d873bbcd1d9bd9ab4d4aa2ba50fc3996b"
}

$ echo $BH | tr 0 . | fold -w 4 | paste -d " " - - - -
.... ..58 e2.d 57a3
d8.6 d987 c29f a123
d847 857a 5a68 45fe
324. 4.71 a574 3e3d

$ : 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
222957 sf: ..58 e2.d d8.6 324. M 

$ : 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
222957 sk: 3e3d a1

$ niceblack.sh $BH $BC
       #####   #####   #####  
      #     # #     # #     # 
            #       #       # 
       #####   #####   #####  
      #       #       #       
      ####### ####### ####### 

       #####  ####### ####### 
      #     # #       #    #  
      #     # #           #   
       ###### ######     #    
            #       #   #     
      #     # #     #   #     
       #####   #####    #     

  ,---   .123 4567 89ab cdef   ---,
  | ..   .... ..58 e2.d 57a3   .f |
  | 1.   d8.6 d987 c29f a123   1f |
  | 2.   d847 857a 5a68 45fe   2f |
  | 3.   324. 4.71 a574 3e3d   3f |
  '===   ==== ==== ==== ====   ==='
   sk:   3e3d a1

$ bitcoin-cli -signet getmempoolinfo
{
  "loaded": true,
  "size": 3,
  "bytes": 462,
  "usage": 3776,
  "total_fee": 0.00000462,
  "maxmempool": 300000000,
  "mempoolminfee": 0.00000100,
  "minrelaytxfee": 0.00000100,
  "incrementalrelayfee": 0.00001000,
  "unbroadcastcount": 1,
  "fullrbf": true
}

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

$ bitcoin-cli -signet gettxoutsetinfo muhash
{
  "height": 222957,
  "bestblock": "00000058e20d57a3d806d987c29fa123d847857a5a6845fe32404071a5743e3d",
  "txouts": 4137557,
  "bogosize": 333381722,
  "muhash": "465abb357925d0611c5d5f8f1aa3d79a3a373e499486d898d73131874e3256e5",
  "total_amount": 10823653.19914825,
  "total_unspendable_amount": 296.80085175,
  "block_info": {
    "prevout_spent": 501033.38025716,
    "coinbase": 25.00004210,
    "new_outputs_ex_coinbase": 501033.38021506,
    "unspendable": 0.00000000,
    "unspendables": {
      "genesis_block": 0.00000000,
      "bip30": 0.00000000,
      "scripts": 0.00000000,
      "unclaimed_rewards": 0.00000000
    }
  }
}

$ bitcoin-cli -signet getblockstats 222957
{
  "avgfee": 191,
  "avgfeerate": 1,
  "avgtxsize": 226,
  "blockhash": "00000058e20d57a3d806d987c29fa123d847857a5a6845fe32404071a5743e3d",
  "feerate_percentiles": [
    1,
    1,
    1,
    1,
    1
  ],
  "height": 222957,
  "ins": 23,
  "maxfee": 860,
  "maxfeerate": 4,
  "maxtxsize": 468,
  "medianfee": 154,
  "mediantime": 1732170739,
  "mediantxsize": 205,
  "minfee": 142,
  "minfeerate": 1,
  "mintxsize": 193,
  "outs": 47,
  "subsidy": 2500000000,
  "swtotal_size": 4975,
  "swtotal_weight": 14089,
  "swtxs": 22,
  "time": 1732172138,
  "total_out": 50103338021506,
  "total_size": 4975,
  "total_weight": 14089,
  "totalfee": 4210,
  "txs": 23,
  "utxo_increase": 24,
  "utxo_size_inc": 2053,
  "utxo_increase_actual": 23,
  "utxo_size_inc_actual": 1884
}

$ bitcoin-cli -signet getnettotals
{
  "totalbytesrecv": 580584223,
  "totalbytessent": 3445903688,
  "timemillis": 1732172138990,
  "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         12      12
out        10      10       2
total      22      22

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