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 JSON RPC Batching #10528

Open
mikedotexe opened this issue Jan 30, 2024 · 2 comments
Open

Add JSON RPC Batching #10528

mikedotexe opened this issue Jan 30, 2024 · 2 comments

Comments

@mikedotexe
Copy link

In the JSON RPC spec there's an optional way to batch requests.

https://www.jsonrpc.org/specification#batch

For applications that may need to frequently query from multiple places (like pools in DeFi) one could batch these together into a single request.

Since each item in the array is given a unique id it would be nice if a failure were indicated in the eventual response with the key of that id.

Related: https://stackoverflow.com/questions/70729985/are-batch-json-rpc-requests-not-supported-with-near

@mikedotexe
Copy link
Author

FASTNEAR has managed to implement JSON RPC Batching, might reach out to @evgenykuzyakov for tips. And as I learn more, hopefully I can help in time.

@evgenykuzyakov
Copy link
Collaborator

It's only enabled for read-rpc. I think nearcore can be upgraded to support batch RPC as well, but it requires extra work

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