# on receiving a block here $ date -u '+%Y-%m-%d %H:%M:%SZ' 2024-04-18 16:32:52Z # as written in the block header 2024-04-18 16:32:47Z $ uptime # since last reboot 16:32:52 up 170 days, 2:49, 0 users, load average: 1.16, 0.99, 0.97 $ battery.sh 74%, 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: 2107064 kB $ du -h -d1 .bitcoin/ 10.1G .bitcoin/indexes 1.8G .bitcoin/signet 12.9M .bitcoin/wallets 48.9G .bitcoin/blocks 11.0G .bitcoin/chainstate 3.4G .bitcoin/testnet3 75.3G .bitcoin/ $ df -h . Filesystem Size Used Available Use% Mounted on /dev/sda3 911.4G 665.4G 245.0G 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 839804 $ BH=$(bitcoin-cli getblockhash 839804); echo $BH 00000000000000000000920bf30e249d415a4f164b1ffb4b84c928c2a2155fc2 $ bitcoin-cli getblockheader $BH { "hash": "00000000000000000000920bf30e249d415a4f164b1ffb4b84c928c2a2155fc2", "confirmations": 1, "height": 839804, "version": 567222272, "versionHex": "21cf2000", "merkleroot": "1ad97e5dcfe9c36531f4cbb8655d58c2b128e4a49015357456b56df4e672ecf4", "time": 1713457967, "mediantime": 1713455421, "nonce": 1481362962, "bits": "17034219", "difficulty": 86388558925171.02, "chainwork": "000000000000000000000000000000000000000074ffb2bf94e3ad4352c328bf", "nTx": 2433, "previousblockhash": "0000000000000000000287318ec195ed4043c027fc4283a20ca362119b01f5f9" } $ echo $BH | tr 0 . | fold -w 4 | paste -d " " - - - - .... .... .... .... .... 92.b f3.e 249d 415a 4f16 4b1f fb4b 84c9 28c2 a215 5fc2 $ : 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 839804: 92.b f3.e 5fc2 $ : 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 839804 sk: 5fc2 95 $ niceblack.sh $BH $BC | | | _ \ | _ \ _| | / _.__/_|\___/\__|_\_\ _ )__ / _ \ _ ) \ | | _ \ _ \\_ / _ \ ( |__ _| \___/___/ _/\___/\__/ _| ,--- .123 4567 89ab cdef ---, | .. .... .... .... .... .f | | 1. .... 92.b f3.e 249d 1f | | 2. 415a 4f16 4b1f fb4b 2f | | 3. 84c9 28c2 a215 5fc2 3f | '=== ==== ==== ==== ==== ===' sf: 92.b f3.e 5fc2 sk: 5fc2 95 ................ |..|..|.....|.|| $ bitcoin-cli getmempoolinfo { "loaded": true, "size": 69619, "bytes": 79186838, "usage": 291179344, "total_fee": 9.90851071, "maxmempool": 300000000, "mempoolminfee": 0.00001000, "minrelaytxfee": 0.00001000, "incrementalrelayfee": 0.00001000, "unbroadcastcount": 0, "fullrbf": true } # current and previous two $ bitcoin-cli getnetworkhashps -1 6.319980281202273e+20 $ bitcoin-cli getnetworkhashps -1 838655 6.182828247491896e+20 $ bitcoin-cli getnetworkhashps -1 836639 5.948660332273082e+20 $ bitcoin-cli gettxoutsetinfo muhash { "height": 839804, "bestblock": "00000000000000000000920bf30e249d415a4f164b1ffb4b84c928c2a2155fc2", "txouts": 176247462, "bogosize": 13523532944, "muhash": "f5f470bdd507444348a982e967e5bdf9e5e2f1215a0781efc9a49a9017d3d63a", "total_amount": 19686061.74273123, "total_unspendable_amount": 219.50726877, "block_info": { "prevout_spent": 6162.64976762, "coinbase": 7.33635821, "new_outputs_ex_coinbase": 6161.56340941, "unspendable": 0.00000000, "unspendables": { "genesis_block": 0.00000000, "bip30": 0.00000000, "scripts": 0.00000000, "unclaimed_rewards": 0.00000000 } } } $ bitcoin-cli getnettotals { "totalbytesrecv": 66470449, "totalbytessent": 94783935, "timemillis": 1713457972553, "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 53 0 2 55 out 5 6 0 11 2 1 total 58 6 2 66 Local addresses 176.112.185.89 port 8333 score 217 gifm4fnj3vua664xhgeanx5fnpco3txkqy4amr4txbfsciiyrkxpf2qd.onion port 8333 score 4 $ bitcoin-cli -addrinfo { "addresses_known": { "ipv4": 54291, "ipv6": 9, "onion": 15318, "i2p": 0, "cjdns": 0, "total": 69618 } } $ halving.sh 839804 ===================================== Bitcoin Block Halving prediction ===================================== bc=839804 gbt=1231006505 bbt=1713457967 This is average time to mine a block (1713457967-1231006505)/839804 bts=574.4810241437287748093602 Now let's multiply that by 840000 which is the block number of next halving and get the prediction: Fri Apr 19 23:49:25 UTC 2024 ------------------------------------- Next palindrome will be 839938 predicted to happen at this time: Fri Apr 19 13:55:47 UTC 2024 ------------------------------------- Current mining epoch number is 416. The next fortnight happens in block 840672 and probably around this time: Wed Apr 24 11:03:36 UTC 2024 ### v2_peerinfo are in v2_peerinfo-bitcoin.txt