-
Notifications
You must be signed in to change notification settings - Fork 91
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
RPC for getting latest vmlog entries #579
Comments
This sounds interesting. Do you have an example how to get the latest n entries with |
Actually, looks like I'm wrong about In comparison
Maybe not essential change the RPC, but we will at least want to correct this documentation. As for other features, I agree they may not be needed ( |
Let's fix this unexpected behavior, let fromHeight of 0 mean the latest block instead of the genesis block and avoid returning all events without pagination. |
In addition, we could add two pagination parameters |
This fix changes the implementation of this interface, will it affect the current user? |
Update: #583 (comment) |
The current RPC for getting event logs has some limitations (for instance it is not easy to request the latest n entries).
https://docs.vite.org/vite-docs/api/rpc/ledger_v2.html#ledger-getvmlogsbyfilter
Possibly look at ethereum RPC for inspiration for improvements.
https://eth.wiki/json-rpc/API#eth_getlogs
The text was updated successfully, but these errors were encountered: