Get the balance account - The selected account. Defaults to "*" for entire wallet. It may be the default account using "". minconf - Only include transactions confirmed at least this many times. (default=1) include_watchonly - Also include balance in watch-
(self, account='*', minconf=1, include_watchonly=False)
| 437 | return CBitcoinAddress(r) |
| 438 | |
| 439 | def getbalance(self, account='*', minconf=1, include_watchonly=False): |
| 440 | """Get the balance |
| 441 | |
| 442 | account - The selected account. Defaults to "*" for entire wallet. It |
| 443 | may be the default account using "". |
| 444 | |
| 445 | minconf - Only include transactions confirmed at least this many times. |
| 446 | (default=1) |
| 447 | |
| 448 | include_watchonly - Also include balance in watch-only addresses (see 'importaddress') |
| 449 | (default=False) |
| 450 | """ |
| 451 | r = self._call('getbalance', account, minconf, include_watchonly) |
| 452 | return int(r*COIN) |
| 453 | |
| 454 | def getbestblockhash(self): |
| 455 | """Return hash of best (tip) block in longest block chain.""" |