Return a new Bitcoin address for receiving payments. If account is not None, it is added to the address book so payments received with the address will be credited to account.
(self, account=None)
| 537 | return self._call('getmininginfo') |
| 538 | |
| 539 | def getnewaddress(self, account=None): |
| 540 | """Return a new Bitcoin address for receiving payments. |
| 541 | |
| 542 | If account is not None, it is added to the address book so payments |
| 543 | received with the address will be credited to account. |
| 544 | """ |
| 545 | r = None |
| 546 | if account is not None: |
| 547 | r = self._call('getnewaddress', account) |
| 548 | else: |
| 549 | r = self._call('getnewaddress') |
| 550 | |
| 551 | return CBitcoinAddress(r) |
| 552 | |
| 553 | def getrawchangeaddress(self): |
| 554 | """Returns a new Bitcoin address, for receiving change. |
no test coverage detected