pub trait OffchainApiClient: ClientT {
    fn set_local_storage<'life0, 'async_trait>(
        &'life0 self,
        kind: StorageKind,
        key: Bytes,
        value: Bytes
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait + Sync
, { ... } fn get_local_storage<'life0, 'async_trait>(
        &'life0 self,
        kind: StorageKind,
        key: Bytes
    ) -> Pin<Box<dyn Future<Output = Result<Option<Bytes>, Error>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait + Sync
, { ... } }
Expand description

Client implementation for the OffchainApi RPC API.

Provided Methods§

Set offchain local storage under given key and prefix.

Get offchain local storage under given key and prefix.

Implementors§