Trait centrifuge_chain::rpc::anchors::AnchorRuntimeApi
source · pub trait AnchorRuntimeApi<Block, Hash, BlockNumber>: Core<Block>where
Block: Block,
Hash: Codec,
BlockNumber: Codec,{
// Provided methods
fn get_anchor_by_id(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
id: Hash
) -> Result<Option<AnchorData<Hash, BlockNumber>>, ApiError> { ... }
fn get_anchor_by_id_with_context(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
context: ExecutionContext,
id: Hash
) -> Result<Option<AnchorData<Hash, BlockNumber>>, ApiError> { ... }
}
Expand description
Runtime Api for the pallet-anchors, to be implemented by and for a specific runtime that uses that pallet.