You are viewing a single comment's thread from:

RE: Getting the List of Hive Usernames & Their Wallet Balances the Hard Way

in LeoFinance4 years ago

Two suggestions.

  1. 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.

  2. 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

Sort:  

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