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

avatar

You are viewing a single comment's thread:

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



0
0
0.000
3 comments
avatar

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

0
0
0.000
avatar

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

0
0
0.000