<jupyter_start><jupyter_text>Bitcoin Mainnet<jupyter_code>import greenaddress
try:
    greenaddress.init({})
except:
    pass

gdkMnemonic = 'order earth buddy render ocean produce bacon orchard congress law illness goat'
if not greenaddress.validate_mnemonic(gdkMnemonic):
    raise Exception("Invalid mnemonic.")
        
s = greenaddress.Session({'name': 'mainnet', 'log_level': 'info'})

s.login_user({}, {'mnemonic': gdkMnemonic}).resolve()
s.get_balance({'subaccount': 0, 'num_confs': 0}).resolve()<jupyter_output><empty_output><jupyter_text>Testnet<jupyter_code>import greenaddress
try:
    greenaddress.init({})
except:
    pass

gdkMnemonic = 'order earth buddy render ocean produce bacon orchard congress law illness goat'
if not greenaddress.validate_mnemonic(gdkMnemonic):
    raise Exception("Invalid mnemonic.")

s = greenaddress.Session({'name': 'testnet', 'log_level': 'info'})

s.login_user({}, {'mnemonic': gdkMnemonic}).resolve()
s.get_balance({'subaccount': 0, 'num_confs': 0}).resolve()<jupyter_output><empty_output><jupyter_text>Liquid Mainnet<jupyter_code>import greenaddress
try:
    greenaddress.init({})
except:
    pass

gdkMnemonic = 'order earth buddy render ocean produce bacon orchard congress law illness goat'
if not greenaddress.validate_mnemonic(gdkMnemonic):
    raise Exception("Invalid mnemonic.")

s = greenaddress.Session({'name': 'liquid', 'log_level': 'info'})

s.login_user({}, {'mnemonic': gdkMnemonic}).resolve()
s.get_balance({'subaccount': 0, 'num_confs': 0}).resolve()<jupyter_output><empty_output><jupyter_text>Testnet<jupyter_code>import greenaddress
try:
    greenaddress.init({})
except:
    pass

gdkMnemonic = 'order earth buddy render ocean produce bacon orchard congress law illness goat'
if not greenaddress.validate_mnemonic(gdkMnemonic):
    raise Exception("Invalid mnemonic.")

s = greenaddress.Session({'name': 'testnet-liquid', 'log_level': 'info'})

s.login_user({}, {'mnemonic': gdkMnemonic}).resolve()
s.get_balance({'subaccount': 0, 'num_confs': 0}).resolve()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.14348249027237353, 'fraction_numerical': 0.0038910505836575876, 'mean_word_length': 7.03515625, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '149007', 'license': 'MIT', 'n_tokens_mistral': 736, 'n_tokens_neox': 695, 'n_words': 147, 'path': 'get_balance.ipynb', 'repo_name': 'valerio-vaccaro/gdk-examples', 'size': '2056'}