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

Allow a way to parse get_logs the same way the Contract.get_filter_changes works #90

Open
grahac opened this issue Sep 19, 2021 · 1 comment

Comments

@grahac
Copy link

grahac commented Sep 19, 2021

Right now get_filter_changes can return a feed of logs parsed to the contract's events. Would be great to open up the capability to do this for get_logs so you can use the same parsing for both current and historical blocks. Easiest way may be to open up two methods. 1 that would take an ABI, convert it and return the event_attributes and then either open up format_log_data or refactor the format logs code in the Genserver call for :get_filter_changes and make that public. get_logs probably should not be a genserver call as someone may make tons of calls going through 10k's of blocks historically.

Happy to submit this or open to another alternatives!

@KristerV
Copy link

KristerV commented Mar 29, 2023

hey. necrobump, but i need this also. i just want to know what's inside of the logs and that's it.

what did you end up doing?

edit: actually noticed there's a PR for this: #106

however i need to parse just getTransactionReceipt.

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