Skip to content

Instantly share code, notes, and snippets.

@Kygandomi
Created November 3, 2021 21:17
Show Gist options
  • Save Kygandomi/aaab5c3902fd81760985270b7f2601f1 to your computer and use it in GitHub Desktop.
Save Kygandomi/aaab5c3902fd81760985270b7f2601f1 to your computer and use it in GitHub Desktop.
Chia Password Coin Tutorial 5 Snippet 2
@app.route('/')
async def index():
await setup_blockchain_connection()
wallets = await wallet_rpc_client.get_wallets()
balance = await wallet_rpc_client.get_wallet_balance(wallets[0]["id"])
return await render_template('index.html', balances=[balance['confirmed_wallet_balance'] / 1000000000000])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment