Skip to content

Commit

Permalink
Update: balance_checker.py example file.
Browse files Browse the repository at this point in the history
  • Loading branch information
meherett committed Dec 1, 2020
1 parent 3f07beb commit 6a64e44
Showing 1 changed file with 25 additions and 27 deletions.
52 changes: 25 additions & 27 deletions examples/balance_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,28 @@
assert is_address(address=VAPOR_P2WPKH_ADDRESS, network=NETWORK, vapor=True)
assert is_address(address=VAPOR_P2WSH_ADDRESS, network=NETWORK, vapor=True)

print(amount_converter(amount=1, symbol="NEU2BTM"))

# # Get all address balances
# print("P2WPKH Address Balance:", amount_converter(
# amount=get_balance(
# address=P2WPKH_ADDRESS, asset=ASSET, network=NETWORK, vapor=False
# ),
# symbol="NEU2BTM"
# ), "BTM")
# print("P2WSH Address Balance:", amount_converter(
# amount=get_balance(
# address=P2WSH_ADDRESS, asset=ASSET, network=NETWORK, vapor=False
# ),
# symbol="NEU2BTM"
# ), "BTM")
# print("Vapor P2WPKH Address Balance:", amount_converter(
# amount=get_balance(
# address=VAPOR_P2WPKH_ADDRESS, asset=ASSET, network=NETWORK, vapor=True
# ),
# symbol="NEU2BTM"
# ), "BTM")
# print("Vapor P2WSH Address Balance:", amount_converter(
# amount=get_balance(
# address=VAPOR_P2WSH_ADDRESS, asset=ASSET, network=NETWORK, vapor=True
# ),
# symbol="NEU2BTM"
# ), "BTM")
# Get all address balances
print("P2WPKH Address Balance:", amount_converter(
amount=get_balance(
address=P2WPKH_ADDRESS, asset=ASSET, network=NETWORK, vapor=False
),
symbol="NEU2BTM"
), "BTM")
print("P2WSH Address Balance:", amount_converter(
amount=get_balance(
address=P2WSH_ADDRESS, asset=ASSET, network=NETWORK, vapor=False
),
symbol="NEU2BTM"
), "BTM")
print("Vapor P2WPKH Address Balance:", amount_converter(
amount=get_balance(
address=VAPOR_P2WPKH_ADDRESS, asset=ASSET, network=NETWORK, vapor=True
),
symbol="NEU2BTM"
), "BTM")
print("Vapor P2WSH Address Balance:", amount_converter(
amount=get_balance(
address=VAPOR_P2WSH_ADDRESS, asset=ASSET, network=NETWORK, vapor=True
),
symbol="NEU2BTM"
), "BTM")

0 comments on commit 6a64e44

Please sign in to comment.