-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Implement new RPC API spec #12071
Comments
The MVP part of this issue has been reviewed and merged into substrate. To summarise, we have completed the following: Rpc API
Methods included:
This will become the standard way of submitting transactions in the V2 API and Methods included:
This PR enables the seamless integration of light-clients with substrate by Methods included:
Blocks PinningFor noncanonical blocks to remain in memory of the node (be pinned) the following The complete substrate API for blocks pinning is design here: #12475 (comment). We have decided to pin all blocks reported by import_notification_stream and @bkchr 's team has offered support to prioritize this #12497 (comment). Outside of SubstrateJsonRPSee related work:
Subxt related work: To gain feedback and start the adoption of this API, subxt will provide Next Steps
Thanks everyone for making this happen! // nonexhaustive CC @tomaka @skunert @bkchr @arkpar @cheme @jsdw @niklasad1 |
The Vision
The goal here is to implement Pierre's new RPC API.
The spec is documented here:
https://paritytech.github.io/json-rpc-interface-spec/introduction.html
The repository for said spec:
https://github.com/paritytech/json-rpc-interface-spec/
The Plan
chainSpec_*
methods.properties
andgenesisHash
are two easy starting points.transaction_*
methods.chainHead_*
methods.archive_*
methods.There will be a bunch of back and forth, especially to begin with. Getting the first implementation work done will give us a better idea on the time taken to do the rest.
There will be some opportunity to parallelise this work after the initial crate and structure are in place.
The existing RPC methods will remain in place for a while after this merges, giving people plenty of time to migrate things over.
If we run into any issues understanding the spec, let's raise issues on the repo (linked above) to help make sure it's super clear.
(Thanks @tomaka for your input in helping create this plan!)
The text was updated successfully, but these errors were encountered: