Esempio n. 1
0
    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)
Esempio n. 2
0
    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)
Esempio n. 3
0
 def validateaddress(self, address):
     """Return information about an address"""
     r = self._call('validateaddress', str(address))
     r['address'] = CBitcoinAddress.from_str(r['address'])
     return r
Esempio n. 4
0
 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)
Esempio n. 5
0
 def validateaddress(self, address):
     """Return information about an address"""
     r = self._call('validateaddress', str(address))
     r['address'] = CBitcoinAddress.from_str(r['address'])
     return r
Esempio n. 6
0
 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)