def getnewaddress(self, account=None): """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. """ r = None if account is not None: r = self._call('getnewaddress', account) else: r = self._call('getnewaddress') return CBitcoinAddress.from_str(r)
def validateaddress(self, address): """Return information about an address""" r = self._call('validateaddress', str(address)) r['address'] = CBitcoinAddress.from_str(r['address']) return r
def getaccountaddress(self, account=None): """Return the current Bitcoin address for receiving payments to this account.""" r = self._call('getaccountaddress', account) return CBitcoinAddress.from_str(r)