# on receiving a block here $ date -u '+%Y-%m-%d %H:%M:%SZ' 2024-04-19 03:37:24Z # as written in the block header 2024-04-19 03:36:25Z $ uptime # since last reboot 03:37:24 up 170 days, 13:53, 0 users, load average: 0.30, 0.28, 0.33 $ battery.sh 78%, Power Supply Online $ uname -snrm Linux singer 6.1.42-0-lts #1-Alpine SMP PREEMPT_DYNAMIC Thu, 27 Jul 2023 12:27:13 +0000 x86_64 $ grep ^MemAvailable /proc/meminfo MemAvailable: 2177496 kB $ du -h -d1 .bitcoin/ 10.1G .bitcoin/indexes 1.8G .bitcoin/signet 12.9M .bitcoin/wallets 49.1G .bitcoin/blocks 11.0G .bitcoin/chainstate 3.4G .bitcoin/testnet3 75.4G .bitcoin/ $ df -h . Filesystem Size Used Available Use% Mounted on /dev/sda3 911.4G 667.6G 242.8G 73% / $ bitcoind --version Bitcoin Core version v27.0 Copyright (C) 2009-2024 The Bitcoin Core developers Please contribute if you find Bitcoin Core useful. Visit for further information about the software. The source code is available from . This is experimental software. Distributed under the MIT software license, see the accompanying file COPYING or $ BC=$(bitcoin-cli getblockcount); echo $BC 839872 $ BH=$(bitcoin-cli getblockhash 839872); echo $BH 000000000000000000018c6f7030e875821cd745f33c91fbe8ca55eb2fa5aa6a $ bitcoin-cli getblockheader $BH { "hash": "000000000000000000018c6f7030e875821cd745f33c91fbe8ca55eb2fa5aa6a", "confirmations": 1, "height": 839872, "version": 575979520, "versionHex": "2254c000", "merkleroot": "2f6bbe8bf960d8a7bcdc46645feee9ecf22a9c895852a071fe7fd243312cefa0", "time": 1713497785, "mediantime": 1713495187, "nonce": 1373568396, "bits": "17034219", "difficulty": 86388558925171.02, "chainwork": "000000000000000000000000000000000000000075149195e8b593a20506deab", "nTx": 2288, "previousblockhash": "000000000000000000031bcf44214ef652d3fdfd5bf12b6e5c8a0af4e12fc893" } $ echo $BH | tr 0 . | fold -w 4 | paste -d " " - - - - .... .... .... .... ...1 8c6f 7.3. e875 821c d745 f33c 91fb e8ca 55eb 2fa5 aa6a $ : Following is the shortform $ last=${BH#${BH%????}} $ a=$(echo $BH | cut -b-60 \ | fold -w 4 \ | grep -Ev '^(0000|[^0]{4})$') $ R=$(echo $a $last | cut -b-20) $ printf "%s: " $BC $ { echo $R | grep "$last$" \ || echo $R M; } | tr "0\n" ". " echo 839872: ...1 7.3. aa6a $ : 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 839872 sk: aa6a a4 $ niceblack.sh $BH $BC ___ ____ ___ / _ \___ \ / _ \ | (_) |__) | (_) | > _ <|__ < \__, | | (_) |__) | / / \___/____/ /_/ ___ ______ ___ / _ \____ |__ \ | (_) | / / ) | > _ < / / / / | (_) |/ / / /_ \___//_/ |____| ,--- .123 4567 89ab cdef ---, | .. .... .... .... .... .f | | 1. ...1 8c6f 7.3. e875 1f | | 2. 821c d745 f33c 91fb 2f | | 3. e8ca 55eb 2fa5 aa6a 3f | '=== ==== ==== ==== ==== ===' sf: ...1 7.3. aa6a sk: aa6a a4 ...............| |...||...||.|||| $ bitcoin-cli getmempoolinfo { "loaded": true, "size": 58129, "bytes": 72692408, "usage": 269779696, "total_fee": 8.48285855, "maxmempool": 300000000, "mempoolminfee": 0.00001000, "minrelaytxfee": 0.00001000, "incrementalrelayfee": 0.00001000, "unbroadcastcount": 0, "fullrbf": true } # current and previous two $ bitcoin-cli getnetworkhashps -1 6.320903279781366e+20 $ bitcoin-cli getnetworkhashps -1 838655 6.182828247491896e+20 $ bitcoin-cli getnetworkhashps -1 836639 5.948660332273082e+20 $ bitcoin-cli gettxoutsetinfo muhash { "height": 839872, "bestblock": "000000000000000000018c6f7030e875821cd745f33c91fbe8ca55eb2fa5aa6a", "txouts": 176458890, "bogosize": 13539837604, "muhash": "f72870185e307270dc5cc2b062c7b10cd553f3e705f21fa7e09e65de6a7e9add", "total_amount": 19686486.74273122, "total_unspendable_amount": 219.50726878, "block_info": { "prevout_spent": 6376.02937702, "coinbase": 6.68209112, "new_outputs_ex_coinbase": 6375.59728590, "unspendable": 0.00000000, "unspendables": { "genesis_block": 0.00000000, "bip30": 0.00000000, "scripts": 0.00000000, "unclaimed_rewards": 0.00000000 } } } $ bitcoin-cli getnettotals { "totalbytesrecv": 75234147, "totalbytessent": 190810805, "timemillis": 1713497844619, "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 v27.0 - server 70016/Satoshi:27.0.0/ ipv4 onion npr total block manual in 52 0 8 60 out 3 8 0 11 2 1 total 55 8 8 71 Local addresses 176.112.185.89 port 8333 score 448 gifm4fnj3vua664xhgeanx5fnpco3txkqy4amr4txbfsciiyrkxpf2qd.onion port 8333 score 4 $ bitcoin-cli -addrinfo { "addresses_known": { "ipv4": 54286, "ipv6": 9, "onion": 15328, "i2p": 0, "cjdns": 0, "total": 69623 } } $ halving.sh 839872 ===================================== Bitcoin Block Halving prediction ===================================== bc=839872 gbt=1231006505 bbt=1713497785 This is average time to mine a block (1713497785-1231006505)/839872 bts=574.4819210546368970509791 Now let's multiply that by 840000 which is the block number of next halving and get the prediction: Sat Apr 20 00:01:58 UTC 2024 ------------------------------------- Next palindrome will be 839938 predicted to happen at this time: Fri Apr 19 14:08:20 UTC 2024 ------------------------------------- Current mining epoch number is 416. The next fortnight happens in block 840672 and probably around this time: Wed Apr 24 11:16:10 UTC 2024 ### v2_peerinfo are in v2_peerinfo-bitcoin.txt