RE: Getting the List of Hive Usernames & Their Wallet Balances the Hard Way
You are viewing a single comment's thread:
Two suggestions.
Include a link to the code, so people can just run it or put it in text form using triple ` on the line before and after to create a code block.
Used shared instance so you don't have to keep passing it around.
from beem.instance import set_shared_hive_instance
hive = Hive(node=nodes)
set_shared_hive_instance(hive)
Posted Using LeoFinance
0
0
0.000
Thank you for the suggestions @themarkymark! They are very helpful.
In the past I tried single ` which didn't help with indentation. Triple seems to work perfectly.
Will use shared instance. Thanks
A single pair of ` is good for a single line block, ``` is for when you are doing multiple lines.
STOP DOWNVOTING !!!