Trait subxt::client::OfflineClientT
source · pub trait OfflineClientT<T: Config>: Clone + Send + Sync + 'static {
// Required methods
fn metadata(&self) -> Metadata;
fn genesis_hash(&self) -> T::Hash;
fn runtime_version(&self) -> RuntimeVersion;
// Provided methods
fn tx(&self) -> TxClient<T, Self> { ... }
fn events(&self) -> EventsClient<T, Self> { ... }
fn storage(&self) -> StorageClient<T, Self> { ... }
fn constants(&self) -> ConstantsClient<T, Self> { ... }
fn blocks(&self) -> BlocksClient<T, Self> { ... }
fn runtime_api(&self) -> RuntimeApiClient<T, Self> { ... }
}
Expand description
A trait representing a client that can perform offline-only actions.
Required Methods§
sourcefn genesis_hash(&self) -> T::Hash
fn genesis_hash(&self) -> T::Hash
Return the provided genesis hash.
sourcefn runtime_version(&self) -> RuntimeVersion
fn runtime_version(&self) -> RuntimeVersion
Return the provided RuntimeVersion
.
Provided Methods§
sourcefn events(&self) -> EventsClient<T, Self>
fn events(&self) -> EventsClient<T, Self>
Work with events.
sourcefn storage(&self) -> StorageClient<T, Self>
fn storage(&self) -> StorageClient<T, Self>
Work with storage.
sourcefn constants(&self) -> ConstantsClient<T, Self>
fn constants(&self) -> ConstantsClient<T, Self>
Access constants.
sourcefn blocks(&self) -> BlocksClient<T, Self>
fn blocks(&self) -> BlocksClient<T, Self>
Work with blocks.
sourcefn runtime_api(&self) -> RuntimeApiClient<T, Self>
fn runtime_api(&self) -> RuntimeApiClient<T, Self>
Work with runtime API.