|
|
|
@ -8,6 +8,7 @@ from pycoin.key.validate import is_address_valid, is_wif_valid
|
|
|
|
|
from pycoin.services import spendables_for_address
|
|
|
|
|
from pycoin.tx.tx_utils import create_signed_tx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_address(which):
|
|
|
|
|
while 1:
|
|
|
|
|
print("enter the %s address=> " % which, end='')
|
|
|
|
@ -17,6 +18,7 @@ def get_address(which):
|
|
|
|
|
return address
|
|
|
|
|
print("invalid address, please try again")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
src_address = get_address("source")
|
|
|
|
|
spendables = spendables_for_address(src_address)
|
|
|
|
|
print(spendables)
|
|
|
|
|