|
|
|
|
@ -35,7 +35,7 @@ import electrum
|
|
|
|
|
from optparse import OptionParser |
|
|
|
|
from decimal import Decimal |
|
|
|
|
|
|
|
|
|
from electrum import Wallet, SecretToASecret, WalletSynchronizer, format_satoshis |
|
|
|
|
from electrum import Wallet, WalletSynchronizer, format_satoshis |
|
|
|
|
|
|
|
|
|
known_commands = ['help', 'validateaddress', 'balance', 'contacts', 'create', 'restore', 'payto', 'sendtx', 'password', 'addresses', 'history', 'label', 'mktx','seed','import','signmessage','verifymessage','eval','deseed','reseed'] |
|
|
|
|
offline_commands = ['password', 'mktx', 'label', 'contacts', 'help', 'validateaddress', 'signmessage', 'verifymessage', 'eval', 'create', 'addresses', 'import', 'seed','deseed','reseed'] |
|
|
|
|
@ -361,8 +361,7 @@ if __name__ == '__main__':
|
|
|
|
|
b = "%d %d %s"%(no, ni, str(Decimal(wallet.get_addr_balance(addr)[0])/100000000)) |
|
|
|
|
else: b='' |
|
|
|
|
if options.show_keys: |
|
|
|
|
pk = wallet.get_private_key(addr, password) |
|
|
|
|
addr = addr + ':' + SecretToASecret(pk) |
|
|
|
|
addr += ':' + str(wallet.get_private_key_base58(addr, password)) |
|
|
|
|
print addr, b, _type, label |
|
|
|
|
|
|
|
|
|
if cmd == 'history': |
|
|
|
|
|