Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

RPC Light/Full node abstraction for RuntimeApis #4197

Open
tomusdrw opened this issue Nov 25, 2019 · 0 comments
Open

RPC Light/Full node abstraction for RuntimeApis #4197

tomusdrw opened this issue Nov 25, 2019 · 0 comments
Labels
U2-some_time_soon Issue is worth doing soon. Z2-medium Can be fixed by a coder with good Rust knowledge but little knowledge of the codebase.
Milestone

Comments

@tomusdrw
Copy link
Contributor

tomusdrw commented Nov 25, 2019

Related to #3875

Currently there is no easy way to call RuntimeApi in the light node (see #3875), when we get one it would be really good to implement some abstract that allows writing RPCs that are not full or light node specific.

This might be quite important for frame-specific RPC extensions, especially the ones produced by 3rd-parties to make it easy to support both Light and Full node out of the box.

If it's possible it would be good to extended this abstraction to blockchain access as well, so that all RPC methods can just share the same API.

With async/await it should be a pleasure to write asynchronous RPCs now :)

@tomusdrw tomusdrw added M6-rpcapi U2-some_time_soon Issue is worth doing soon. Z2-medium Can be fixed by a coder with good Rust knowledge but little knowledge of the codebase. labels Nov 25, 2019
@tomusdrw tomusdrw added this to the As-and-when milestone Nov 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
U2-some_time_soon Issue is worth doing soon. Z2-medium Can be fixed by a coder with good Rust knowledge but little knowledge of the codebase.
Projects
None yet
Development

No branches or pull requests

2 participants