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

Support direct RPC calls #404

Closed
dvdplm opened this issue Jul 5, 2021 · 0 comments · Fixed by #421
Closed

Support direct RPC calls #404

dvdplm opened this issue Jul 5, 2021 · 0 comments · Fixed by #421
Labels
enhancement New feature or request

Comments

@dvdplm
Copy link
Contributor

dvdplm commented Jul 5, 2021

In substrate, the RpcSession and RpcHandlers types are used to run RPC queries against the running node without passing over the normal http/ws machinery. Instead, JSON requests are sent via the rpc_query method directly to the running server. We currently do not have any way to do this but I suspect we could make good use of it for testing.

This mechanism is used by polkadot (for testing) and cumulus. The substrate-in-a-browser project also uses this (here). NOTE: only S-in-B seems to use this for non-test code.

The current substrate integration branch removes these types (happened here) and it needs to be re-implemented.

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

Successfully merging a pull request may close this issue.

1 participant