You are viewing a single comment's thread from:

RE: Archon Proposal - Gov Account Sells, Buys, Stakes, Unstakes, Witness Vote, and automation!

in #archon5 years ago (edited)
account = "sports-gov"

nodelist = NodeList()
nodelist.update_nodes()
nodes = nodelist.get_nodes(hive=True)
hive = Hive(node=nodes)


def transfer_token(to, amount, symbol, memo, account):
    he_wallet = Wallet(account, blockchain_instance=hive)
    transfer_tx = he_wallet.transfer(to, amount, symbol, memo)
    time.sleep(1)
    c = Comment(loaded_post, steem_instance=hive)
    c.reply(str(transfer_tx), "stake_tx", account)


transfer_token("myfakeuser", 10, "ARCHON", "this is a memo", account)

!end

I can't believe I forgot to define HE transfers! Thank you for pointing that out!