From 40651322d0772448e3b32258c7e57b0e70542987 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Wed, 25 Jul 2018 12:05:25 -0400 Subject: [PATCH] add account id to account balance listing --- torba/manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/torba/manager.py b/torba/manager.py index 7a674afb9..4f7f6e823 100644 --- a/torba/manager.py +++ b/torba/manager.py @@ -50,7 +50,8 @@ class WalletManager(object): 'account': account.name, 'coins': round(satoshis/COIN, 2), 'satoshis': satoshis, - 'is_default_account': i == 0 and j == 0 + 'is_default_account': i == j == 0, + 'id': account.public_key.address }) defer.returnValue(balances)