Skip to content

Instantly share code, notes, and snippets.

@simform-solutions
Created September 20, 2017 07:00
Show Gist options
  • Save simform-solutions/633f03f128f3efc1dc9726ab9ff751ae to your computer and use it in GitHub Desktop.
Save simform-solutions/633f03f128f3efc1dc9726ab9ff751ae to your computer and use it in GitHub Desktop.
# Displays all saved addresses and there balance
def full_account_info():
update_addresses_balance(fal_balance[0]["f_index"])
update_fal_balance()
if len(address_data) > 0:
all_address_data = ""
for p in address_data:
address = p["address"]
checksum = p["checksum"]
balance = int(p["balance"])
integrity = verify_checksum(checksum, address)
if integrity:
data = "Index: " + str(p["index"]) + " " + p["address"] +\
" balance: " + convert_units(balance) + "\n"
all_address_data += data
else:
data = "Index: " + str(p["index"]) + " Invalid Checksum!!!" + "\n"
all_address_data += data
print(all_address_data)
fal_data = "First index with balance: " + str(
fal_balance[0]["f_index"]) + "\n" + "Last index with balance is: " + str(fal_balance[0]["l_index"])
print(fal_data)
else:
print("No Data to display!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment