# on receiving a block here $ date -u '+%Y-%m-%d %H:%M:%SZ' 2024-04-19 02:06:57Z # as written in the block header 2024-04-19 02:06:20Z $ uptime # since last reboot 02:06:56 up 170 days, 12:23, 0 users, load average: 0.38, 0.28, 0.30 $ 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: 2188080 kB $ du -h -d1 .bitcoin/ 10.1G .bitcoin/indexes 1.8G .bitcoin/signet 12.9M .bitcoin/wallets 49.0G .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 839860 $ BH=$(bitcoin-cli getblockhash 839860); echo $BH 000000000000000000011bf7e0cbea9c87dc2e3508c158a765b53032dffa7c72 $ bitcoin-cli getblockheader $BH { "hash": "000000000000000000011bf7e0cbea9c87dc2e3508c158a765b53032dffa7c72", "confirmations": 1, "height": 839860, "version": 536985600, "versionHex": "2001c000", "merkleroot": "738a8e70cca7abbb9b1ed0caeba6a912dbfe8dd0706dbe4bdea741835ee64c0d", "time": 1713492380, "mediantime": 1713487291, "nonce": 3369863250, "bits": "17034219", "difficulty": 86388558925171.02, "chainwork": "00000000000000000000000000000000000000007510e2bb61726afab8645527", "nTx": 2619, "previousblockhash": "000000000000000000027bf9cdf0b90897e41b163cf95578dae929fe76145c43" } $ echo $BH | tr 0 . | fold -w 4 | paste -d " " - - - - .... .... .... .... ...1 1bf7 e.cb ea9c 87dc 2e35 .8c1 58a7 65b5 3.32 dffa 7c72 $ : 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 839860: ...1 e.cb .8c1 3.32 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 839860 sk: 7c72 84 $ niceblack.sh $BH $BC __ __ __ / / / /__ ____/ /__ / _ \/ / _ \/ __/ '_/ /_.__/_/\___/\__/_/\_\ ___ _______ ___ ____ ___ ( _ )|_ / _ \( _ )/ __// _ \ / _ |/_ <\_, / _ / _ \/ // / \___/____/___/\___/\___/\___/ ,--- .123 4567 89ab cdef ---, | .. .... .... .... .... .f | | 1. ...1 1bf7 e.cb ea9c 1f | | 2. 87dc 2e35 .8c1 58a7 2f | | 3. 65b5 3.32 dffa 7c72 3f | '=== ==== ==== ==== ==== ===' sf: ...1 e.cb .8c1 3.32 M sk: 7c72 84 ...............| ...||.||||||.||| $ bitcoin-cli getmempoolinfo { "loaded": true, "size": 64447, "bytes": 73434380, "usage": 278773056, "total_fee": 9.67272252, "maxmempool": 300000000, "mempoolminfee": 0.00001000, "minrelaytxfee": 0.00001000, "incrementalrelayfee": 0.00001000, "unbroadcastcount": 0, "fullrbf": true } # current and previous two $ bitcoin-cli getnetworkhashps -1 6.306290064217267e+20 $ bitcoin-cli getnetworkhashps -1 838655 6.182828247491896e+20 $ bitcoin-cli getnetworkhashps -1 836639 5.948660332273082e+20 $ bitcoin-cli gettxoutsetinfo muhash { "height": 839860, "bestblock": "000000000000000000011bf7e0cbea9c87dc2e3508c158a765b53032dffa7c72", "txouts": 176434353, "bogosize": 13537913224, "muhash": "d25b140105b214600508b92b11d759acdbf86dd7d99f1dba6f2ba7bc66dd85c8", "total_amount": 19686411.74273122, "total_unspendable_amount": 219.50726878, "block_info": { "prevout_spent": 5581.29438145, "coinbase": 7.08553655, "new_outputs_ex_coinbase": 5580.45884490, "unspendable": 0.00000000, "unspendables": { "genesis_block": 0.00000000, "bip30": 0.00000000, "scripts": 0.00000000, "unclaimed_rewards": 0.00000000 } } } $ bitcoin-cli getnettotals { "totalbytesrecv": 40763018, "totalbytessent": 61011547, "timemillis": 1713492417619, "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 50 0 5 55 out 3 8 0 11 2 1 total 53 8 5 66 Local addresses 176.112.185.89 port 8333 score 278 gifm4fnj3vua664xhgeanx5fnpco3txkqy4amr4txbfsciiyrkxpf2qd.onion port 8333 score 4 $ bitcoin-cli -addrinfo { "addresses_known": { "ipv4": 54298, "ipv6": 9, "onion": 15329, "i2p": 0, "cjdns": 0, "total": 69636 } } $ halving.sh 839860 ===================================== Bitcoin Block Halving prediction ===================================== bc=839860 gbt=1231006505 bbt=1713492380 This is average time to mine a block (1713492380-1231006505)/839860 bts=574.4836937108565713333174 Now let's multiply that by 840000 which is the block number of next halving and get the prediction: Sat Apr 20 00:26:47 UTC 2024 ------------------------------------- Next palindrome will be 839938 predicted to happen at this time: Fri Apr 19 14:33:09 UTC 2024 ------------------------------------- Current mining epoch number is 416. The next fortnight happens in block 840672 and probably around this time: Wed Apr 24 11:41:00 UTC 2024 ### v2_peerinfo are in v2_peerinfo-bitcoin.txt