Streaming blockchain for the incoming transfers of a specific account
events = EventListener(client)
for transfer in events.on('transfer', filter={"to": "emrebeyler"}):
print(transfer)
Streaming for incoming witness vote actions
events = EventListener(client)
for witness_vote in events.on('account_witness_vote', filter={"witness": "emrebeyler"}):
print(witness_vote)
Callables (Filtering on conditions)
Let's get the comments and posts tagged with utopian-io:
def filter_tags(comment_body):
return "utopian-io" in comment_body["json_metadata"]["tags"]:
for op in events.on("comment", condition=filter_tags):
print("only comments has a tag with utopian-io")
Stream everything
for op in events.stream():
print(op)
Hooks
events = EventListener(client)
def send_to_discord(data):
# r = requests.post(...)
pass
for witness_vote in events.on('account_witness_vote',
filter={"witness": "emrebeyler"},
hook=send_to_discord):
print(witness_vote)
Any thoughts?
I use the word event a lot in this context, when I try to explain my code in plain words.
I am deep into my JS project, but I hope I can make use of lightsteem some time in the future.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
How is the wallet going on?
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
I have the backend figured out ( comes with steem-js pretty much )
I am stuck with UI decisions and my latest idea is to just go retro; 800x600 and style it pixel by pixel.
I am not sure how to proceed and I am waiting for another rush of inspiration ...
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Those are the droids I am looking for
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit