FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Notify is broken · Issue #180 · bitshares/python-bitshares · GitHub

Notify is broken #180

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL