The example code for notify does not work in the latest version. I have as of now not been successful in figuring out why it fails.
code:
from pprint import pprint
from bitshares.notify import Notify
from bitshares.market import Market
from bitshares import BitShares
notify = Notify(
markets=["TEST:GOLD"],
accounts=["xeroc"],
on_market=print,
on_account=print,
on_block=print,
on_tx=print,
)
notify.listen()
error message:
File "\site-packages\bitshares\notify.py", line 88, in __init__
urls=self.blockchain.rpc.urls,
File "\site-packages\events\events.py", line 58, in __getattr__
raise EventsException("Event '%s' is not declared" % name)
events.events.EventsException: Event 'blockchain' is not declared
Reactions are currently unavailable
The example code for notify does not work in the latest version. I have as of now not been successful in figuring out why it fails.
code:
from pprint import pprint from bitshares.notify import Notify from bitshares.market import Market from bitshares import BitShares notify = Notify( markets=["TEST:GOLD"], accounts=["xeroc"], on_market=print, on_account=print, on_block=print, on_tx=print, ) notify.listen()error message:
File "\site-packages\bitshares\notify.py", line 88, in __init__ urls=self.blockchain.rpc.urls, File "\site-packages\events\events.py", line 58, in __getattr__ raise EventsException("Event '%s' is not declared" % name) events.events.EventsException: Event 'blockchain' is not declared