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

Add Query-specific Hook function and RPC #263

Open
tequdev opened this issue Jan 21, 2024 · 2 comments
Open

Add Query-specific Hook function and RPC #263

tequdev opened this issue Jan 21, 2024 · 2 comments
Labels
feature Feature Request

Comments

@tequdev
Copy link
Contributor

tequdev commented Jan 21, 2024

A new rcp call the query-only function inside of a hook.

I think it would be a third main function (in addition to hook(), cbak()) that would not be able to change the Ledger State by state_set, emit, etc. or read transaction information such as oxtn_field.
This is similar to account_info, etc., only information is obtained without signing the transaction or incurring transaction costs.

This feature allows users to retrieve readable data without having to decode the HookState themselves or pay transaction costs to retrieve the information.

@dangell7
Copy link
Collaborator

I believe the problem is that the call would require opening up the VM and this should come with a cost to avoid DDOS.

@tequdev
Copy link
Contributor Author

tequdev commented Jan 22, 2024

It would be similar to the existing PathFind method.

Public nodes can make this RPC unavailable, and clusters may have dedicated nodes for this RPC.

@dangell7 dangell7 added the feature Feature Request label Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature Request
Projects
None yet
Development

No branches or pull requests

2 participants