print("hive_acc.hp {}".format(hive_acc.hp))
 # rep
 print("bhive_acc.rep  {}".format(bhive_acc.rep))
 print("hive_acc.rep {}".format(hive_acc.rep))
 # balances
 print("bhive_acc.balances  {}".format(bhive_acc.balances))
 print("hive_acc.balances {}".format(hive_acc.balances))
 # get_balances()
 print("bhive_acc.get_balances()  {}".format(bhive_acc.get_balances()))
 print("hive_acc.get_balances() {}".format(hive_acc.get_balances()))
 # reputation()
 print("bhive_acc.get_reputation()  {}".format(bhive_acc.get_reputation()))
 print("hive_acc.reputation() {}".format(hive_acc.reputation()))
 # voting_power()
 print("bhive_acc.get_voting_power()  {}".format(
     bhive_acc.get_voting_power()))
 print("hive_acc.voting_power() {}".format(hive_acc.voting_power()))
 # get_followers()
 print("bhive_acc.get_followers()  {}".format(bhive_acc.get_followers()))
 print("hive_acc.get_followers() {}".format(hive_acc.get_followers()))
 # get_following()
 print("bhive_acc.get_following()  {}".format(bhive_acc.get_following()))
 print("hive_acc.get_following() {}".format(hive_acc.get_following()))
 # has_voted()
 print("bhive_acc.has_voted()  {}".format(
     bhive_acc.has_voted("@thecrazygm/api-methods-list-for-appbase")))
 print("hive_acc.has_voted() {}".format(
     hive_acc.has_voted(
         hivePost("@thecrazygm/api-methods-list-for-appbase"))))
 # curation_stats()
 print("bhive_acc.curation_stats()  {}".format(bhive_acc.curation_stats()))
Exemplo n.º 2
0
from __future__ import print_function
from __future__ import unicode_literals
import sys
from datetime import datetime, timedelta
import time
import io
import logging

from bhive.blockchain import Blockchain
from bhive.block import Block
from bhive.account import Account
from bhive.amount import Amount
from bhivegraphenebase.account import PasswordKey, PrivateKey, PublicKey
from bhive.hive import Hive
from bhive.utils import parse_time, formatTimedelta
from bhiveapi.exceptions import NumRetriesReached
from bhive.nodelist import NodeList
log = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO)

if __name__ == "__main__":
    # hv = Hive(node="https://testnet.timcliff.com/")
    # hv = Hive(node="https://testnet.hiveitdev.com")
    hv = Hive(node="https://api.hive.blog")
    hv.wallet.unlock(pwd="pwd123")

    account = Account("bhive.app", hive_instance=hv)
    print(account.get_voting_power())

    account.transfer("thecrazygm", 0.001, "HBD", "test")
Exemplo n.º 3
0
 # rep
 print("bsteem_acc.rep  {}".format(bsteem_acc.rep))
 print("steem_acc.rep {}".format(steem_acc.rep))
 # balances
 print("bsteem_acc.balances  {}".format(bsteem_acc.balances))
 print("steem_acc.balances {}".format(steem_acc.balances))
 # get_balances()
 print("bsteem_acc.get_balances()  {}".format(bsteem_acc.get_balances()))
 print("steem_acc.get_balances() {}".format(steem_acc.get_balances()))
 # reputation()
 print("bsteem_acc.get_reputation()  {}".format(
     bsteem_acc.get_reputation()))
 print("steem_acc.reputation() {}".format(steem_acc.reputation()))
 # voting_power()
 print("bsteem_acc.get_voting_power()  {}".format(
     bsteem_acc.get_voting_power()))
 print("steem_acc.voting_power() {}".format(steem_acc.voting_power()))
 # get_followers()
 print("bsteem_acc.get_followers()  {}".format(bsteem_acc.get_followers()))
 print("steem_acc.get_followers() {}".format(steem_acc.get_followers()))
 # get_following()
 print("bsteem_acc.get_following()  {}".format(bsteem_acc.get_following()))
 print("steem_acc.get_following() {}".format(steem_acc.get_following()))
 # has_voted()
 print("bsteem_acc.has_voted()  {}".format(
     bsteem_acc.has_voted("@thecrazygm/api-methods-list-for-appbase")))
 print("steem_acc.has_voted() {}".format(
     steem_acc.has_voted(
         hivePost("@thecrazygm/api-methods-list-for-appbase"))))
 # curation_stats()
 print("bsteem_acc.curation_stats()  {}".format(