MCPcopy Index your code
hub / github.com/petertodd/python-bitcoinlib / validateaddress

Method validateaddress

bitcoin/rpc.py:766–773  ·  view source on GitHub ↗

Return information about an address

(self, address)

Source from the content-addressed store, hash-verified

764 return self._call('submitblock', hexblock)
765
766 def validateaddress(self, address):
767 """Return information about an address"""
768 r = self._call('validateaddress', str(address))
769 if r['isvalid']:
770 r['address'] = CBitcoinAddress(r['address'])
771 if 'pubkey' in r:
772 r['pubkey'] = unhexlify_str(r['pubkey'])
773 return r
774
775 def unlockwallet(self, password, timeout=60):
776 """Stores the wallet decryption key in memory for 'timeout' seconds.

Callers 1

Calls 3

CBitcoinAddressClass · 0.90
unhexlify_strFunction · 0.85
_callMethod · 0.45

Tested by

no test coverage detected