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
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
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 :)The text was updated successfully, but these errors were encountered: