# on receiving block 235964 here
$ date -u '+%Y-%m-%dT%H:%M:%SZ'
2025-02-19T01:39:31Z
# as written in the block header
2025-02-19T01:39:30Z

$ uptime   # since last reboot
 01:39:31 up 16 days, 13:19,  0 users,  load average: 0.53, 0.66, 0.65

$ battery.sh
100%, Power Supply Online

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

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

$ du -h -d1 .bitcoin/signet
153M	.bitcoin/signet/indexes
816K	.bitcoin/signet/wallets
583M	.bitcoin/signet/blocks
758M	.bitcoin/signet/chainstate
1.6G	.bitcoin/signet

$ df -h .
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda3       912G  833G   78G  92% /

$ 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 -signet getblockcount); echo $BC
235964

$ BH=$(bitcoin-cli -signet getblockhash 235964); echo $BH
0000002cf0cfe69f39e033215be95c6ea4899b1558707b564ef0692256acc7e7

$ bitcoin-cli -signet getblockheader 0000002cf0cfe69f39e033215be95c6ea4899b1558707b564ef0692256acc7e7
{
  "hash": "0000002cf0cfe69f39e033215be95c6ea4899b1558707b564ef0692256acc7e7",
  "confirmations": 1,
  "height": 235964,
  "version": 536870912,
  "versionHex": "20000000",
  "merkleroot": "f501e7508c95a690c4aabf5195254b89236b3b6b77c53d7837f24f5e9982cef1",
  "time": 1739929170,
  "mediantime": 1739925789,
  "nonce": 8369043,
  "bits": "1e013d96",
  "difficulty": 0.003148705982017662,
  "chainwork": "000000000000000000000000000000000000000000000000000002af8edcada7",
  "nTx": 66,
  "previousblockhash": "00000050e6ff9a2c51cfeb6cd1f434703f0b3dab0cdd9721a3133f203b8855cf"
}


$ echo $BH | tr 0 . | fold -w 4 | paste -d " " - - - -
.... ..2c f.cf e69f
39e. 3321 5be9 5c6e
a489 9b15 587. 7b56
4ef. 6922 56ac c7e7

$ : 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
235964 sf: ..2c f.cf 39e. 587. 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 .
235964 sk: c7e7 a1

$ : 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 .
235964 ak: b119 a1

### niceblack moved to the end

$ bitcoin-cli -signet getmempoolinfo
{
  "loaded": true,
  "size": 352,
  "bytes": 30360746,
  "usage": 137453840,
  "total_fee": 1.55191854,
  "maxmempool": 300000000,
  "mempoolminfee": 0.00001000,
  "minrelaytxfee": 0.00001000,
  "incrementalrelayfee": 0.00001000,
  "unbroadcastcount": 0,
  "fullrbf": true
}

$ gmm.sh
5130

## Current epoch estimation is -1.61%
## 92 of 2016, i.e. 4%, 1924 to go
## Current and previous two in numbers:
$ bitcoin-cli -signet getnetworkhashps 2016
22173.41001278092
$ bitcoin-cli -signet getnetworkhashps 2016 235871
22534.38657022396
$ bitcoin-cli -signet getnetworkhashps 2016 233855
23113.76284090853

$ bitcoin-cli -signet gettxoutsetinfo muhash
{
  "height": 235964,
  "bestblock": "0000002cf0cfe69f39e033215be95c6ea4899b1558707b564ef0692256acc7e7",
  "txouts": 11288228,
  "bogosize": 912816359,
  "muhash": "e234ac59612f53e7c402078d212974ee9039a4f110ae2785e24941d0ffc1e152",
  "total_amount": 11148827.19924825,
  "total_unspendable_amount": 297.80075175,
  "block_info": {
    "prevout_spent": 198.08870892,
    "coinbase": 25.07240684,
    "new_outputs_ex_coinbase": 198.01630208,
    "unspendable": 0.00000000,
    "unspendables": {
      "genesis_block": 0.00000000,
      "bip30": 0.00000000,
      "scripts": 0.00000000,
      "unclaimed_rewards": 0.00000000
    }
  }
}

$ bitcoin-cli -signet getblockstats 235964
{
  "avgfee": 111395,
  "avgfeerate": 36,
  "avgtxsize": 3241,
  "blockhash": "0000002cf0cfe69f39e033215be95c6ea4899b1558707b564ef0692256acc7e7",
  "feerate_percentiles": [
    7,
    7,
    7,
    7,
    8
  ],
  "height": 235964,
  "ins": 151,
  "maxfee": 848750,
  "maxfeerate": 4992,
  "maxtxsize": 86194,
  "medianfee": 8488,
  "mediantime": 1739925789,
  "mediantxsize": 438,
  "minfee": 368,
  "minfeerate": 2,
  "mintxsize": 186,
  "outs": 4295,
  "subsidy": 2500000000,
  "swtotal_size": 210668,
  "swtotal_weight": 783563,
  "swtxs": 65,
  "time": 1739929170,
  "total_out": 19801630208,
  "total_size": 210668,
  "total_weight": 783563,
  "totalfee": 7240684,
  "txs": 66,
  "utxo_increase": 4144,
  "utxo_size_inc": 348890,
  "utxo_increase_actual": 4139,
  "utxo_size_inc_actual": 348336
}

$ bitcoin-cli -signet getnettotals
{
  "totalbytesrecv": 1282051735,
  "totalbytessent": 2778880187,
  "timemillis": 1739929172255,
  "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.1.0 signet - server 70016/Satoshi:28.1.0/

         ipv4   total   block
in          3       3
out        10      10       2
total      13      13

Local addresses: n/a


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

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

a09335b2ea9a0d96
	56c3012208480aacb3ede994ceb431153ecf305e98e8bb0334ef5c120f804c89
8ae1858c760d8013
	1753e3b505e2ebdb78eff61a4353329c9592ee748f54642efe9d34e47fc4134a
b238f700f288e393
	62e80a33561d5190cd68aac76f91b1b708a35a90ab894e30c646263a98dbc83f
80efcc914e7f0788
	50479d389375877a87ed599b84ec5078ad6c55b9ebd1e5117575ed6ff7dcdbcc
47cd60bbd9f36655
	8b1979d80b2ce65d78440136073b7fb53dcddd91e3f752edd291acef30a8af50


$ niceblack.sh $BH $BC

     _|_|    _|_|_|    _|_|_|_|  
   _|    _|        _|  _|        
       _|      _|_|    _|_|_|    
     _|            _|        _|  
   _|_|_|_|  _|_|_|    _|_|_|    

     _|_|      _|_|_|  _|  _|    
   _|    _|  _|        _|  _|    
     _|_|_|  _|_|_|    _|_|_|_|  
         _|  _|    _|      _|    
   _|_|_|      _|_|        _|    

  ,---   .123 4567 89ab cdef   ---,
  |      ABOVEisJUSTaSAMPLE^      |
  | ..   .... ..2c f.cf e69f   .f |
  | 1.   39e. 3321 5be9 5c6e   1f |
  | 2.   a489 9b15 587. 7b56   2f |
  | 3.   4ef. 6922 56ac c7e7   3f |
  '===   ==== ==== ==== ====   ==='
   ak:   b119 a1