You are viewing a single comment's thread from:

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

in LeoFinance2 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)

Posted Using LeoFinance


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

 2 years ago 

A single pair of ` is good for a single line block, ``` is for when you are doing multiple lines.