pub trait ChainSpecApiClient: ClientT {
    // Provided methods
    fn chain_spec_unstable_chain_name<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = RpcResult<String>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn chain_spec_unstable_genesis_hash<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = RpcResult<String>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn chain_spec_unstable_properties<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = RpcResult<Properties>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

Client implementation for the ChainSpecApi RPC API.

Provided Methods§

source

fn chain_spec_unstable_chain_name<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = RpcResult<String>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Get the chain name, as present in the chain specification.

Unstable

This method is unstable and subject to change in the future.

source

fn chain_spec_unstable_genesis_hash<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = RpcResult<String>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Get the chain’s genesis hash.

Unstable

This method is unstable and subject to change in the future.

source

fn chain_spec_unstable_properties<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = RpcResult<Properties>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Get the properties of the chain, as present in the chain specification.

Note

The json whitespaces are not guaranteed to persist.

Unstable

This method is unstable and subject to change in the future.

Implementors§

source§

impl<TypeJsonRpseeInteral> ChainSpecApiClient for TypeJsonRpseeInteralwhere TypeJsonRpseeInteral: ClientT,