# on receiving a block here
$ date -u '+%Y-%m-%d %H:%M:%SZ'
2024-04-25 17:00:36Z
# as written in the block header
2024-04-25 17:00:24Z
$ uptime # since last reboot
17:00:36 up 177 days, 3:17, 0 users, load average: 0.13, 0.25, 0.24
$ 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: 2120316 kB
$ du -h -d1 .bitcoin/
10.1G .bitcoin/indexes
1.9G .bitcoin/signet
12.9M .bitcoin/wallets
50.6G .bitcoin/blocks
11.2G .bitcoin/chainstate
3.4G .bitcoin/testnet3
77.3G .bitcoin/
$ df -h .
Filesystem Size Used Available Use% Mounted on
/dev/sda3 911.4G 669.5G 241.0G 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
840834
$ BH=$(bitcoin-cli getblockhash 840834); echo $BH
0000000000000000000105045012ba2f7d5af1cf8a3301f19319664f71164550
$ bitcoin-cli getblockheader $BH
{
"hash": "0000000000000000000105045012ba2f7d5af1cf8a3301f19319664f71164550",
"confirmations": 1,
"height": 840834,
"version": 536920064,
"versionHex": "2000c000",
"merkleroot": "00fb20f63d5a7e7d88580b142d435443038782cc2c8fae07f521cc0e886f2570",
"time": 1714064424,
"mediantime": 1714057527,
"nonce": 3170057555,
"bits": "170331db",
"difficulty": 88104191118793.16,
"chainwork": "0000000000000000000000000000000000000000763cd15c3a73e66a6ccbb41a",
"nTx": 3188,
"previousblockhash": "0000000000000000000301359c3ceb10aeee252a48c02e971839507f0aa4c19e"
}
$ echo $BH | tr 0 . | fold -w 4 | paste -d " " - - - -
.... .... .... ....
...1 .5.4 5.12 ba2f
7d5a f1cf 8a33 .1f1
9319 664f 7116 455.
$ : 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
840834 sf: ...1 .5.4 5.12 .1f1 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
840834 sk: 455. 74
$ niceblack.sh $BH $BC
##### # ###
# # # # # #
# # # # # #
##### # # # #
# # ####### # #
# # # # #
##### # ###
##### ##### #
# # # # # #
# # # # #
##### ##### # #
# # # #######
# # # # #
##### ##### #
,--- .123 4567 89ab cdef ---,
| .. .... .... .... .... .f |
| 1. ...1 .5.4 5.12 ba2f 1f |
| 2. 7d5a f1cf 8a33 .1f1 2f |
| 3. 9319 664f 7116 455. 3f |
'=== ==== ==== ==== ==== ==='
sf: ...1 .5.4 5.12 .1f1 M
sk: 455. 74
...............| .....|.|.....|..
$ bitcoin-cli getmempoolinfo
{
"loaded": true,
"size": 53795,
"bytes": 80686023,
"usage": 295046272,
"total_fee": 13.20658117,
"maxmempool": 300000000,
"mempoolminfee": 0.00007000,
"minrelaytxfee": 0.00001000,
"incrementalrelayfee": 0.00001000,
"unbroadcastcount": 0,
"fullrbf": true
}
# current and previous two
$ bitcoin-cli getnetworkhashps -1
6.525421496504631e+20
$ bitcoin-cli getnetworkhashps -1 840671
6.304409353452951e+20
$ bitcoin-cli getnetworkhashps -1 838655
6.182828247491896e+20
$ bitcoin-cli gettxoutsetinfo muhash
{
"height": 840834,
"bestblock": "0000000000000000000105045012ba2f7d5af1cf8a3301f19319664f71164550",
"txouts": 179709914,
"bogosize": 13798206544,
"muhash": "4e0748749d9ba95d25aee82c5ea19743dece03d586c05124a98c57fb4d9d51f0",
"total_amount": 19689889.86769845,
"total_unspendable_amount": 219.50730155,
"block_info": {
"prevout_spent": 12504.22760736,
"coinbase": 4.96002170,
"new_outputs_ex_coinbase": 12502.39258566,
"unspendable": 0.00000000,
"unspendables": {
"genesis_block": 0.00000000,
"bip30": 0.00000000,
"scripts": 0.00000000,
"unclaimed_rewards": 0.00000000
}
}
}
$ bitcoin-cli getblockstats 840834
{
"avgfee": 57578,
"avgfeerate": 183,
"avgtxsize": 493,
"blockhash": "0000000000000000000105045012ba2f7d5af1cf8a3301f19319664f71164550",
"feerate_percentiles": [
86,
108,
131,
268,
283
],
"height": 840834,
"ins": 6344,
"maxfee": 2208379,
"maxfeerate": 6018,
"maxtxsize": 45344,
"medianfee": 32583,
"mediantime": 1714057527,
"mediantxsize": 225,
"minfee": 1530,
"minfeerate": 5,
"mintxsize": 150,
"outs": 13735,
"subsidy": 312500000,
"swtotal_size": 1507767,
"swtotal_weight": 3730818,
"swtxs": 2996,
"time": 1714064424,
"total_out": 1250239258566,
"total_size": 1573025,
"total_weight": 3991850,
"totalfee": 183502170,
"txs": 3188,
"utxo_increase": 7391,
"utxo_size_inc": 535406,
"utxo_increase_actual": 6951,
"utxo_size_inc_actual": 507459
}
$ bitcoin-cli getnettotals
{
"totalbytesrecv": 290452633,
"totalbytessent": 431688098,
"timemillis": 1714064437681,
"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 42 0 10 52
out 9 2 0 11 2 1
total 51 2 10 63
Local addresses
176.112.184.220 port 8333 score 1011
gifm4fnj3vua664xhgeanx5fnpco3txkqy4amr4txbfsciiyrkxpf2qd.onion port 8333 score 4
$ bitcoin-cli -addrinfo
{
"addresses_known": {
"ipv4": 54350,
"ipv6": 9,
"onion": 15128,
"i2p": 0,
"cjdns": 0,
"total": 69487
}
}
$ halving.sh 840834
=====================================
Bitcoin Block Halving prediction
=====================================
bc=840834
gbt=1231006505
bbt=1714064424
This is average time to mine a block
(1714064424-1231006505)/840834
bts=574.4978729477245833011232
Now let's multiply that by 1050000
which is the block number of next
halving and get the prediction:
Tue Feb 15 12:17:26 UTC 2028
-------------------------------------
Next palindrome will be 841148
predicted to happen at this time:
Sat Apr 27 19:06:56 UTC 2024
-------------------------------------
Current mining epoch number is 417.
The next fortnight happens in block
842688 and probably around this time:
Wed May 8 00:52:23 UTC 2024
### v2_peerinfo are in v2_peerinfo-bitcoin.txt