Created
November 3, 2021 21:17
-
-
Save Kygandomi/aaab5c3902fd81760985270b7f2601f1 to your computer and use it in GitHub Desktop.
Chia Password Coin Tutorial 5 Snippet 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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