pub trait AnchorApiClient<IdHash, BlockHash>: ClientT
where IdHash: Send + Sync + 'static + Serialize + DeserializeOwned, BlockHash: Send + Sync + 'static + Serialize,
{ // Provided method fn get_anchor_by_id<'life0, 'async_trait>( &'life0 self, id: IdHash, at: Option<BlockHash> ) -> Pin<Box<dyn Future<Output = Result<AnchorData<IdHash, BlockNumber>, Error>> + Send + 'async_trait>> where Self: Sync + 'async_trait, 'life0: 'async_trait { ... } }
Expand description

Client implementation for the AnchorApi RPC API.

Provided Methods§

source

fn get_anchor_by_id<'life0, 'async_trait>( &'life0 self, id: IdHash, at: Option<BlockHash> ) -> Pin<Box<dyn Future<Output = Result<AnchorData<IdHash, BlockNumber>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Returns an anchor given an anchor id from the runtime storage

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<TypeJsonRpseeInteral, IdHash, BlockHash> AnchorApiClient<IdHash, BlockHash> for TypeJsonRpseeInteral
where TypeJsonRpseeInteral: ClientT, IdHash: Send + Sync + 'static + Serialize + DeserializeOwned, BlockHash: Send + Sync + 'static + Serialize,