pub trait AnchorApiClient<IdHash, BlockHash>: ClientTwhere
    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 = RpcResult<AnchorData<IdHash, BlockNumber>>> + 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 = RpcResult<AnchorData<IdHash, BlockNumber>>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Returns an anchor given an anchor id from the runtime storage

Implementors§

source§

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