# on receiving block 234106 here
$ date -u '+%Y-%m-%dT%H:%M:%SZ'
2025-02-05T16:45:15Z
# as written in the block header
2025-02-05T16:45:13Z

$ uptime   # since last reboot
 16:45:15 up 3 days,  4:24,  0 users,  load average: 2.62, 1.23, 0.79

$ battery.sh
100%, Power Supply Online

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

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

$ du -h -d1 .bitcoin/signet
144M	.bitcoin/signet/indexes
22M	.bitcoin/signet/wallets
474M	.bitcoin/signet/blocks
737M	.bitcoin/signet/chainstate
1.4G	.bitcoin/signet

$ df -h .
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda3       912G  833G   79G  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
234106

$ BH=$(bitcoin-cli -signet getblockhash 234106); echo $BH
0000009b7d7c79f015cd8f17c67650e640a39cb26c1cd5ef9edea4c6f2333976

$ bitcoin-cli -signet getblockheader $BH
{
  "hash": "0000009b7d7c79f015cd8f17c67650e640a39cb26c1cd5ef9edea4c6f2333976",
  "confirmations": 1,
  "height": 234106,
  "version": 536870912,
  "versionHex": "20000000",
  "merkleroot": "34a764f217bc6657c98fa269d1be7db31698fc76056045e3b9e7674d4ae6e776",
  "time": 1738773913,
  "mediantime": 1738770939,
  "nonce": 4476879,
  "bits": "1e0135a3",
  "difficulty": 0.003229541849067077,
  "chainwork": "000000000000000000000000000000000000000000000000000002a990a35844",
  "nTx": 250,
  "previousblockhash": "0000008785428b1c9ab515c291ddc0721dd97b754026c1b48ce5adf50b5c74a5"
}

$ echo $BH | tr 0 . | fold -w 4 | paste -d " " - - - -
.... ..9b 7d7c 79f.
15cd 8f17 c676 5.e6
4.a3 9cb2 6c1c d5ef
9ede a4c6 f233 3976

/home/nsm/.bitcoin/signet
$ : 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
234106 sf: ..9b 79f. 5.e6 4.a3 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
234106 sk: 3976 b1

### niceblack moved to the end

$ bitcoin-cli -signet getmempoolinfo
{
  "loaded": true,
  "size": 53490,
  "bytes": 27881662,
  "usage": 157422032,
  "total_fee": 0.57718080,
  "maxmempool": 300000000,
  "mempoolminfee": 0.00001000,
  "minrelaytxfee": 0.00001000,
  "incrementalrelayfee": 0.00001000,
  "unbroadcastcount": 0,
  "fullrbf": true
}

$ gmm.sh
2115

## Current epoch estimation is -1%
## 250 of 2016, i.e. 12%, 1766 to go
## Current and previous two in numbers:
$ bitcoin-cli -signet getnetworkhashps 2016
22883.0984107424
$ bitcoin-cli -signet getnetworkhashps 2016 233855
23113.76284090853
$ bitcoin-cli -signet getnetworkhashps 2016 231839
23031.74252748914

$ bitcoin-cli -signet gettxoutsetinfo muhash
{
  "height": 234106,
  "bestblock": "0000009b7d7c79f015cd8f17c67650e640a39cb26c1cd5ef9edea4c6f2333976",
  "txouts": 11176808,
  "bogosize": 901686548,
  "muhash": "cf090b9045a31d37f73932f698800a18dc37a149855a558498f330f8e6e69e30",
  "total_amount": 11102377.19924825,
  "total_unspendable_amount": 297.80075175,
  "block_info": {
    "prevout_spent": 2588.97428662,
    "coinbase": 25.01795885,
    "new_outputs_ex_coinbase": 2588.95632777,
    "unspendable": 0.00000000,
    "unspendables": {
      "genesis_block": 0.00000000,
      "bip30": 0.00000000,
      "scripts": 0.00000000,
      "unclaimed_rewards": 0.00000000
    }
  }
}

$ bitcoin-cli -signet getblockstats 234106
{
  "avgfee": 7212,
  "avgfeerate": 7,
  "avgtxsize": 1717,
  "blockhash": "0000009b7d7c79f015cd8f17c67650e640a39cb26c1cd5ef9edea4c6f2333976",
  "feerate_percentiles": [
    2,
    2,
    4,
    4,
    4
  ],
  "height": 234106,
  "ins": 3586,
  "maxfee": 788170,
  "maxfeerate": 3726,
  "maxtxsize": 160557,
  "medianfee": 740,
  "mediantime": 1738770939,
  "mediantxsize": 292,
  "minfee": 400,
  "minfeerate": 2,
  "mintxsize": 186,
  "outs": 914,
  "subsidy": 2500000000,
  "swtotal_size": 427538,
  "swtotal_weight": 995471,
  "swtxs": 249,
  "time": 1738773913,
  "total_out": 258895632777,
  "total_size": 427538,
  "total_weight": 995471,
  "totalfee": 1795885,
  "txs": 250,
  "utxo_increase": -2672,
  "utxo_size_inc": -224434,
  "utxo_increase_actual": -2674,
  "utxo_size_inc_actual": -224670
}

$ bitcoin-cli -signet getnettotals
{
  "totalbytesrecv": 319846829,
  "totalbytessent": 748608054,
  "timemillis": 1738773915623,
  "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         54      54
out        10      10       2
total      64      64

Local addresses: n/a


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

### v2_peerinfo are in v2_peerinfo-signet.txt
$ bitcoin-cli -signet 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

9550b66c9c9a91e5
	a7936711cae214f04bbbb914ddac76df61dbbdf10b16b1fef68f837139100fa3
42995a30af56998d
	840cba9d6b3e00760cb5a7e97c52e1102ea1ccda6f77c29b8a1df0482fbbd7c0
e84da0eac41b669a
	60a42d701d35a0394c8232dc4216faf924d0ebb26960a01a34e76c9e54330bdb
55ea3d046e2bae2c
	aeab362990291790e0552f6b8f1c4f141a46bc556bcecdc78aca68e2150078ae
923217ba0d3b84e0
	72622ff4ef8d4b3f53b3561c583ccaccda1893fee71c5b8cf7e5a895cc02e225
df909473ad3efbb3
	dce76cfc7e8e97773e6b05468fe9ec023874e57c6dd3ba87bf84754dcdbbf4b1
4504eaaee974df4e
	106d7ceb9eabcdc09ef1bcc470f79d2ada4a0169f12942a1a485c7fbab4b81f1
597b20fd231af81d
	afb78a80487551ed63cb38ff21e5369fef99ab344ea21bb53b5975de0a6dd8d6
abdc2011ae09d286
	30b13a837f5480e9334d1fbee614b8c7790339bed6dc04788d760d0e373cc8ee


$ niceblack.sh $BH $BC
          __   __         __  
         / /  / /__  ____/ /__
        / _ \/ / _ \/ __/  '_/
       /_.__/_/\___/\__/_/\_\ 

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

  ,---   .123 4567 89ab cdef   ---,
  | ..   .... ..9b 7d7c 79f.   .f |
  | 1.   15cd 8f17 c676 5.e6   1f |
  | 2.   4.a3 9cb2 6c1c d5ef   2f |
  | 3.   9ede a4c6 f233 3976   3f |
  '===   ==== ==== ==== ====   ==='
   sk:   3976 b1