Trait phronesis::phron_node_rpc::PhronNodeApiClient
source · pub trait PhronNodeApiClient<B, BE>: ClientT{
// Provided methods
fn emergency_finalize<'life0, 'async_trait>(
&'life0 self,
justification: Bytes,
hash: BlockHash,
number: BlockNumber
) -> Pin<Box<dyn Future<Output = RpcResult<()>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn block_author<'life0, 'async_trait>(
&'life0 self,
hash: BlockHash
) -> Pin<Box<dyn Future<Output = RpcResult<Option<AccountId>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn ready<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = RpcResult<bool>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn validator_network_info<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = RpcResult<HashMap<AccountId, ValidatorAddressingInfo>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}
Expand description
Client implementation for the PhronNodeApi
RPC API.
Provided Methods§
sourcefn emergency_finalize<'life0, 'async_trait>(
&'life0 self,
justification: Bytes,
hash: BlockHash,
number: BlockNumber
) -> Pin<Box<dyn Future<Output = RpcResult<()>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn emergency_finalize<'life0, 'async_trait>(
&'life0 self,
justification: Bytes,
hash: BlockHash,
number: BlockNumber
) -> Pin<Box<dyn Future<Output = RpcResult<()>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Finalize the block with given hash and number using attached signature. Returns the empty string or an error.
Get the author of the block with given hash.
sourcefn ready<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = RpcResult<bool>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn ready<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = RpcResult<bool>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn validator_network_info<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = RpcResult<HashMap<AccountId, ValidatorAddressingInfo>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Object Safety§
This trait is not object safe.