RE: RE: Getting the List of Hive Usernames & Their Wallet Balances the Hard Way
You are viewing a single comment's thread from:

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

Words
35
Reading
1 min
Listen
Play
6y

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)