# on receiving a block here
$ date -u '+%Y-%m-%d %H:%M:%SZ'
2024-05-01 21:49:47Z
# as written in the block header
2024-05-01 21:49:19Z
$ uptime # since last reboot
21:49:47 up 183 days, 8:06, 0 users, load average: 0.15, 0.29, 0.30
$ battery.sh
94%, 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: 2187028 kB
$ du -h -d1 .bitcoin/
10.1G .bitcoin/indexes
1.9G .bitcoin/signet
12.9M .bitcoin/wallets
52.1G .bitcoin/blocks
11.3G .bitcoin/chainstate
3.4G .bitcoin/testnet3
78.9G .bitcoin/
$ df -h .
Filesystem Size Used Available Use% Mounted on
/dev/sda3 911.4G 671.1G 239.4G 74% /
$ 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
841693
$ BH=$(bitcoin-cli getblockhash 841693); echo $BH
000000000000000000024f4db6ffec0273dd036cfcd24e27cf39feffc904665f
$ bitcoin-cli getblockheader $BH
{
"hash": "000000000000000000024f4db6ffec0273dd036cfcd24e27cf39feffc904665f",
"confirmations": 1,
"height": 841693,
"version": 771080192,
"versionHex": "2df5c000",
"merkleroot": "ff6f013be1e288244b58c389d990f8201f765a492ac3d45598474297d11fe71a",
"time": 1714600159,
"mediantime": 1714594986,
"nonce": 1190727993,
"bits": "170331db",
"difficulty": 88104191118793.16,
"chainwork": "00000000000000000000000000000000000000007749b2558130af1c801def84",
"nTx": 2617,
"previousblockhash": "00000000000000000001612f3690898ba64d85f6ffe5d1d83b2a24f34f6d0c4f"
}
$ echo $BH | tr 0 . | fold -w 4 | paste -d " " - - - -
.... .... .... ....
...2 4f4d b6ff ec.2
73dd .36c fcd2 4e27
cf39 feff c9.4 665f
$ : 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
841693 sf: ...2 ec.2 .36c c9.4 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
841693 sk: 665f 84
$ niceblack.sh $BH $BC
_ _ _
| |__| |___ __| |__
| '_ \ / _ \/ _| / /
|_.__/_\___/\__|_\_\
___ _ _ _ __ ___ ____
( _ ) | |/ |/ // _ \__ /
/ _ \_ _| / _ \_, /|_ \
\___/ |_||_\___//_/|___/
,--- .123 4567 89ab cdef ---,
| .. .... .... .... .... .f |
| 1. ...2 4f4d b6ff ec.2 1f |
| 2. 73dd .36c fcd2 4e27 2f |
| 3. cf39 feff c9.4 665f 3f |
'=== ==== ==== ==== ==== ==='
sf: ...2 ec.2 .36c c9.4 M
sk: 665f 84
..............|. .|..||||.|..||.|
$ bitcoin-cli getmempoolinfo
{
"loaded": true,
"size": 36374,
"bytes": 85412915,
"usage": 282045936,
"total_fee": 7.93014424,
"maxmempool": 300000000,
"mempoolminfee": 0.00001000,
"minrelaytxfee": 0.00001000,
"incrementalrelayfee": 0.00001000,
"unbroadcastcount": 0,
"fullrbf": true
}
# current and previous two
$ bitcoin-cli getnetworkhashps -1
6.136134862634055e+20
$ bitcoin-cli getnetworkhashps -1 840671
6.304409353452951e+20
$ bitcoin-cli getnetworkhashps -1 838655
6.182828247491896e+20
$ bitcoin-cli gettxoutsetinfo muhash
{
"height": 841693,
"bestblock": "000000000000000000024f4db6ffec0273dd036cfcd24e27cf39feffc904665f",
"txouts": 181218270,
"bogosize": 13920009727,
"muhash": "7d05d838fac7f50cc2d53ac5704caa91577fdaadb92184d58a30ac68ed02de17",
"total_amount": 19692574.24269297,
"total_unspendable_amount": 219.50730703,
"block_info": {
"prevout_spent": 19620.74911214,
"coinbase": 3.65470002,
"new_outputs_ex_coinbase": 19620.21941212,
"unspendable": 0.00000000,
"unspendables": {
"genesis_block": 0.00000000,
"bip30": 0.00000000,
"scripts": 0.00000000,
"unclaimed_rewards": 0.00000000
}
}
}
$ bitcoin-cli getblockstats 841693
{
"avgfee": 20248,
"avgfeerate": 53,
"avgtxsize": 554,
"blockhash": "000000000000000000024f4db6ffec0273dd036cfcd24e27cf39feffc904665f",
"feerate_percentiles": [
19,
23,
35,
48,
77
],
"height": 841693,
"ins": 5724,
"maxfee": 1101244,
"maxfeerate": 2024,
"maxtxsize": 34114,
"medianfee": 8351,
"mediantime": 1714594986,
"mediantxsize": 248,
"minfee": 2707,
"minfeerate": 10,
"mintxsize": 150,
"outs": 15250,
"subsidy": 312500000,
"swtotal_size": 1376653,
"swtotal_weight": 3699418,
"swtxs": 2391,
"time": 1714600159,
"total_out": 1962021941212,
"total_size": 1449791,
"total_weight": 3991970,
"totalfee": 52970002,
"txs": 2617,
"utxo_increase": 9526,
"utxo_size_inc": 702067,
"utxo_increase_actual": 9466,
"utxo_size_inc_actual": 697649
}
$ bitcoin-cli getnettotals
{
"totalbytesrecv": 59180490,
"totalbytessent": 58038619,
"timemillis": 1714600188486,
"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 48 0 1 49
out 7 4 0 11 2 1
total 55 4 1 60
Local addresses
176.112.184.220 port 8333 score 289
gifm4fnj3vua664xhgeanx5fnpco3txkqy4amr4txbfsciiyrkxpf2qd.onion port 8333 score 4
$ bitcoin-cli -addrinfo
{
"addresses_known": {
"ipv4": 52523,
"ipv6": 9,
"onion": 14986,
"i2p": 0,
"cjdns": 0,
"total": 67518
}
}
$ halving.sh 841693
=====================================
Bitcoin Block Halving prediction
=====================================
bc=841693
gbt=1231006505
bbt=1714600159
This is average time to mine a block
(1714600159-1231006505)/841693
bts=574.5480590333304027354359
Now let's multiply that by 1050000
which is the block number of next
halving and get the prediction:
Wed Feb 16 02:55:41 UTC 2028
-------------------------------------
Next palindrome will be 842248
predicted to happen at this time:
Sun May 5 14:23:53 UTC 2024
-------------------------------------
Current mining epoch number is 417.
The next fortnight happens in block
842688 and probably around this time:
Wed May 8 12:37:14 UTC 2024
### v2_peerinfo are in v2_peerinfo-bitcoin.txt