예제 #1
0
파일: rpc.py 프로젝트: obulpathi/bitcoinlib
    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)
예제 #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)
예제 #3
0
파일: rpc.py 프로젝트: obulpathi/bitcoinlib
 def validateaddress(self, address):
     """Return information about an address"""
     r = self._call('validateaddress', str(address))
     r['address'] = CBitcoinAddress.from_str(r['address'])
     return r
예제 #4
0
파일: rpc.py 프로젝트: obulpathi/bitcoinlib
 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)
예제 #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
예제 #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)