pub trait SchemasRuntimeApi<Block: BlockT>: Core<Block> {
// Provided methods
fn get_by_schema_id(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
schema_id: SchemaId
) -> Result<Option<SchemaResponse>, ApiError> { ... }
fn get_schema_versions_by_name(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
schema_name: Vec<u8>
) -> Result<Option<Vec<SchemaVersionResponse>>, ApiError> { ... }
}
Expand description
Runtime Version for Schemas
- MUST be incremented if anything changes
- Also update in js/api-augment
- See: https://paritytech.github.io/polkadot/doc/polkadot_primitives/runtime_api/index.html Runtime API definition for Schemas
Provided Methods§
sourcefn get_by_schema_id(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
schema_id: SchemaId
) -> Result<Option<SchemaResponse>, ApiError>
fn get_by_schema_id( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, schema_id: SchemaId ) -> Result<Option<SchemaResponse>, ApiError>
Fetch the schema by id