Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

智能合约抛出的事件如何监听 #85

Closed
TXZdream opened this issue Dec 12, 2019 · 2 comments
Closed

智能合约抛出的事件如何监听 #85

TXZdream opened this issue Dec 12, 2019 · 2 comments

Comments

@TXZdream
Copy link

智能合约里面有一个emit方法,作用是抛出一个事件,但是在文档和demo中,我都只看到可以从调用合约的返回值里获取log从而看到事件,找不到如何监听这个event的方法。所以这个有没有提供监听的途径呢?或者说我有没有办法通过一个for循环来轮询获得这个log呢?

@cyjseagull
Copy link
Contributor

Python SDK暂时没有提供事件监听功能,Java SDK是支持的。
后续版本,我们会支持事件监听。

@TXZdream
Copy link
Author

好的谢谢~我是用python的,不过我是直接轮询交易获得log信息来使用的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants