23 Working with the Stellar network API Part 3 #28daysofcode #python

python Feb 23, 2018

**** ARCHIVED POST ****

This script was built out of necessity. Instead of checking the web or a wallet app for the number of SPDZ tokens, I can use this script to save time.

Goal

Check for SPDZ in the account given

Requirements

stellar_base

StellarBase is the Python SDK for the Stellar network.

The App

Link to app repo on Github:

23 git repo

Usage:

Run it:

You will need a Stellar account. If you want to check the real live Stellar network add a -p at the end.

Check the public network for SPDZ on the account given:

python get_spdz_balance.py -a GBVWQV5H2Z4ITXTSQ7AWA5HEZD6JTO36OR35CHL2MC72Q3Q6E2PANCKS -p

Check the test network for SPDZ on the account given:

python get_spdz_balance.py -a GBVWQV5H2Z4ITXTSQ7AWA5HEZD6JTO36OR35CHL2MC72Q3Q6E2PANCKS

Returns:

Checking the public network.

The SPDZ balance is: 278.9960000

Jeremy Schroeder

Developer, Inventor, all around technical guy

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.