Metadata V15 breaking change: Features to include in V15 #12939
Description
We would like to include the Runtime API info in the metadata and create a V15 release.
The metadata has been stable for a while and would like to minimize the number
of breaking changes from the user's perspective.
Considering this is a breaking change for the metadata, what other features would we
like to include in the metadata V15 before making a release?
Metadata with Runtime API
To help client-side applications make runtime API calls, we would like to include
the runtime API information in the metadata (for context: #11648).
This feature would help tools like subxt, polkadot-js, and capi provide a uniform API into the runtime.
Furthermore, after merging the RPC Spec V2 API into Substrate, the current RPC methods
calling into the runtime will be replaced by chainHead_unstable_call
(the equivalent of the
current state_call
method). One example is fetching the metadata via state_getMetadata
that would be replaced by a runtime API call to Metadata_metadata
without parameters.
Discovering which runtime function is available, providing the parameters, and interpreting the
result into the proper shape are tedious and prone to error steps. Including the runtime API info
in the metadata would improve the user experience.
The decl_runtime_apis
from Substrate will be modified to include the runtime API information in the metadata.
// CC: @jsdw @niklasad1 @bkchr @ascjones @athei @harrysolovay
Metadata
Metadata
Assignees
Type
Projects
Status