commit 5fdbdfff9f9c0327ef57b4eac8c74b88b9bdd073
parent 5a51083ec33883d3fec3c74cb0891b317f4d1f35
Author: William Casarin <jb55@jb55.com>
Date: Tue, 4 Jun 2019 00:10:46 -0700
docs: chain analysis example
Diffstat:
2 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/README.md b/README.md
@@ -49,6 +49,16 @@
$ bcalc --price 0.0041 41 usd to btc
10000 BTC
+
+ Chain analysis
+
+ $ bitcoin-iterate -q --output=%oa --start 0 --end 80000 | sed 's,$, sats to btc,g' | bcalc | sort | uniq -c | sort -nr | head -n5
+ 84634 50 BTC
+ 9778 0.01 BTC
+ 7829 0.05 BTC
+ 3064 5 BTC
+ 1326 0.02 BTC
+
## Install
diff --git a/bcalc.1 b/bcalc.1
@@ -124,6 +124,22 @@ bcalc --price 0.0041 41 usd to btc
.br
10000 BTC
+.SS
+Chain analysis
+
+.br
+bitcoin-iterate -q --output=%oa --start 0 --end 80000 | sed 's,$, sats to btc,g' | bcalc | sort | uniq -c | sort -nr | head -n5
+.br
+84634 50 BTC
+.br
+9778 0.01 BTC
+.br
+7829 0.05 BTC
+.br
+3064 5 BTC
+.br
+1326 0.02 BTC
+
.SH BUGS
Precision issues with BTC -> m/sat conversions such as: bcalc 0.1284502 btc