-
-
Save emre/e46413804cb778953587cb5fe0a24db4 to your computer and use it in GitHub Desktop.
approve_and_disapprove
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from steem.transactionbuilder import TransactionBuilder | |
from steembase import operations | |
from steem import Steem | |
s = Steem(keys=["<active_wif>"]) | |
account = "emrebeyler" | |
payouts = [ | |
operations.AccountWitnessVote(**{ | |
"account": account, | |
"witness": "sircork", | |
"approve": False, | |
}), | |
operations.AccountWitnessVote(**{ | |
"account": account, | |
"witness": "noblewitness", | |
"approve": True, | |
}),] | |
tb = TransactionBuilder() | |
tb.appendOps(payouts) | |
tb.appendSigner(account, "active") | |
tb.sign() | |
resp = tb.broadcast() | |
print(resp) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment