File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -350,16 +350,19 @@ def getaccountaddress(self, account=None):
350
350
r = self ._call ('getaccountaddress' , account )
351
351
return CBitcoinAddress (r )
352
352
353
- def getbalance (self , account = '*' , minconf = 1 ):
353
+ def getbalance (self , account = '*' , minconf = 1 , include_watchonly = False ):
354
354
"""Get the balance
355
355
356
356
account - The selected account. Defaults to "*" for entire wallet. It
357
357
may be the default account using "".
358
358
359
359
minconf - Only include transactions confirmed at least this many times.
360
360
(default=1)
361
+
362
+ include_watchonly - Also include balance in watch-only addresses (see 'importaddress')
363
+ (default=False)
361
364
"""
362
- r = self ._call ('getbalance' , account , minconf )
365
+ r = self ._call ('getbalance' , account , minconf , include_watchonly )
363
366
return int (r * COIN )
364
367
365
368
def getbestblockhash (self ):
You can’t perform that action at this time.
0 commit comments