tconvert satoshis to btc in listunspent - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit f58e54138436b810201d4dc4b2faf9384f78d84c DIR parent 89958cc68797728029941b8db18356734c73d699 HTML Author: thomasv <thomasv@gitorious> Date: Tue, 26 Feb 2013 15:30:37 +0100 convert satoshis to btc in listunspent Diffstat: M lib/commands.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- DIR diff --git a/lib/commands.py b/lib/commands.py t@@ -43,7 +43,9 @@ class Commands: print_json(h) def listunspent(self): - print_json(self.wallet.get_unspent_coins()) + l = self.wallet.get_unspent_coins() + for i in l: i["value"] = i["value"]*1e-8 + print_json(l) def createrawtransaction(self, inputs, outputs): # convert to own format