# on receiving a block here
$ date -u '+%Y-%m-%d %H:%M:%SZ'
2024-04-24 13:20:53Z
# as written in the block header
2024-04-24 13:20:15Z
$ uptime # since last reboot
13:20:53 up 175 days, 23:37, 0 users, load average: 0.31, 0.52, 0.54
$ battery.sh
96%, 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: 2176564 kB
$ du -h -d1 .bitcoin/
10.1G .bitcoin/indexes
1.9G .bitcoin/signet
12.9M .bitcoin/wallets
50.3G .bitcoin/blocks
11.2G .bitcoin/chainstate
3.4G .bitcoin/testnet3
77.0G .bitcoin/
$ df -h .
Filesystem Size Used Available Use% Mounted on
/dev/sda3 911.4G 669.2G 241.3G 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
840662
$ BH=$(bitcoin-cli getblockhash 840662); echo $BH
00000000000000000001dfe5a81febc6a9a9c3b8bab24af4797172defe86a80e
$ bitcoin-cli getblockheader $BH
{
"hash": "00000000000000000001dfe5a81febc6a9a9c3b8bab24af4797172defe86a80e",
"confirmations": 1,
"height": 840662,
"version": 536870912,
"versionHex": "20000000",
"merkleroot": "24c2f916fb99b2b2788ca4d790c49bda469e668a59575f9abcc3d1ddee66e8b0",
"time": 1713964815,
"mediantime": 1713962541,
"nonce": 4092464907,
"bits": "17034219",
"difficulty": 86388558925171.02,
"chainwork": "0000000000000000000000000000000000000000760708c85c2587fd3a28911d",
"nTx": 3988,
"previousblockhash": "00000000000000000001682f406ab65bb711162b8dcc406919a8b9a4af263a08"
}
$ echo $BH | tr 0 . | fold -w 4 | paste -d " " - - - -
.... .... .... ....
...1 dfe5 a81f ebc6
a9a9 c3b8 bab2 4af4
7971 72de fe86 a8.e
$ : 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 sf: " $BC
$ { echo $R | grep "$last$" \
|| echo $R M; } | tr "0\n" ". "
echo
840662 sf: ...1 a8.e
$ : 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
840662 sk: a8.e a4
$ niceblack.sh $BH $BC
___ _ _ ___
( _ )| || | / _ \
/ _ \| || |_| | | |
| (_) |__ _| |_| |
\___/ |_| \___/
__ __ ____
/ /_ / /_|___ \
| '_ \| '_ \ __) |
| (_) | (_) / __/
\___/ \___/_____|
,--- .123 4567 89ab cdef ---,
| .. .... .... .... .... .f |
| 1. ...1 dfe5 a81f ebc6 1f |
| 2. a9a9 c3b8 bab2 4af4 2f |
| 3. 7971 72de fe86 a8.e 3f |
'=== ==== ==== ==== ==== ==='
sf: ...1 a8.e
sk: a8.e a4
...............| ||.||||||||..|.|
$ bitcoin-cli getmempoolinfo
{
"loaded": true,
"size": 67904,
"bytes": 66658548,
"usage": 290785168,
"total_fee": 15.30464281,
"maxmempool": 300000000,
"mempoolminfee": 0.00001986,
"minrelaytxfee": 0.00001000,
"incrementalrelayfee": 0.00001000,
"unbroadcastcount": 0,
"fullrbf": true
}
# current and previous two
$ bitcoin-cli getnetworkhashps -1
6.303278651901242e+20
$ bitcoin-cli getnetworkhashps -1 838655
6.182828247491896e+20
$ bitcoin-cli getnetworkhashps -1 836639
5.948660332273082e+20
$ bitcoin-cli gettxoutsetinfo muhash
{
"height": 840662,
"bestblock": "00000000000000000001dfe5a81febc6a9a9c3b8bab24af4797172defe86a80e",
"txouts": 179391724,
"bogosize": 13772800343,
"muhash": "c9e6d0af3b0d11832ae4dc9fe8160d67b03fa9376aa659e8478c9b97c7b2e214",
"total_amount": 19689352.36770937,
"total_unspendable_amount": 219.50729063,
"block_info": {
"prevout_spent": 2458.92851860,
"coinbase": 4.44238819,
"new_outputs_ex_coinbase": 2457.61113041,
"unspendable": 0.00000000,
"unspendables": {
"genesis_block": 0.00000000,
"bip30": 0.00000000,
"scripts": 0.00000000,
"unclaimed_rewards": 0.00000000
}
}
}
$ bitcoin-cli getnettotals
{
"totalbytesrecv": 73842358,
"totalbytessent": 77090537,
"timemillis": 1713964854371,
"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 39 0 10 49
out 3 8 0 11 2 1
total 42 8 10 60
Local addresses
176.112.184.220 port 8333 score 221
gifm4fnj3vua664xhgeanx5fnpco3txkqy4amr4txbfsciiyrkxpf2qd.onion port 8333 score 4
$ bitcoin-cli -addrinfo
{
"addresses_known": {
"ipv4": 54349,
"ipv6": 9,
"onion": 15137,
"i2p": 0,
"cjdns": 0,
"total": 69495
}
}
$ halving.sh 840662
=====================================
Bitcoin Block Halving prediction
=====================================
bc=840662
gbt=1231006505
bbt=1713964815
This is average time to mine a block
(1713964815-1231006505)/840662
bts=574.4969268303707906735517
Now let's multiply that by 1050000
which is the block number of next
halving and get the prediction:
Tue Feb 15 12:00:52 UTC 2028
-------------------------------------
Next palindrome will be 841148
predicted to happen at this time:
Sat Apr 27 18:53:40 UTC 2024
-------------------------------------
Current mining epoch number is 416.
The next fortnight happens in block
840672 and probably around this time:
Wed Apr 24 14:55:59 UTC 2024
### v2_peerinfo are in v2_peerinfo-bitcoin.txt