You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using RUES to listen to contract calls, any function. From the documentation:
Endpoint: /on/contracts:[contract-id]/[event-name], where [event-name] is optional. If the event name is not provided, the connection will listen to all events on the given contract.
So, passing an empty event-name should work.
To Reproduce
Here is some Python code (you will first need to install niquests, and websockets, modules):
Now, a second script with one change (I added the specific withdraw topic/event at the end of the URL):
# File: listen-withdraw.py# Same content as above with a modified `url_contract`url_contract="https://nodes.dusk.network/on/contracts:0200000000000000000000000000000000000000000000000000000000000000/withdraw"
Execute both scripts in different terminals, and wait for any event to happen.
Expected behaviour
listen-all.py will never get events, it will wait indefinitely.
While on the other hand, listen-withdraw.py will effectively print withdraw events.
Platform
Architecture: 8086
OS: Debian GNU/Linux (even if I think this is not related to the OS, nor the tooling).
The text was updated successfully, but these errors were encountered:
Describe the bug
I am using RUES to listen to contract calls, any function. From the documentation:
So, passing an empty
event-name
should work.To Reproduce
Here is some Python code (you will first need to install
niquests
, andwebsockets
, modules):Now, a second script with one change (I added the specific
withdraw
topic/event at the end of the URL):Execute both scripts in different terminals, and wait for any event to happen.
Expected behaviour
listen-all.py
will never get events, it will wait indefinitely.While on the other hand,
listen-withdraw.py
will effectively printwithdraw
events.Platform
The text was updated successfully, but these errors were encountered: