Trait DebugApiClient

Source
pub trait DebugApiClient: ClientT {
    // Provided methods
    fn raw_header<'life0, 'async_trait>(
        &'life0 self,
        block: BlockNumberOrTagOrHash,
    ) -> Pin<Box<dyn Future<Output = Result<Option<Bytes>, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn raw_block<'life0, 'async_trait>(
        &'life0 self,
        block: BlockNumberOrTagOrHash,
    ) -> Pin<Box<dyn Future<Output = Result<Option<Bytes>, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn raw_transaction<'life0, 'async_trait>(
        &'life0 self,
        transaction_hash: H256,
    ) -> Pin<Box<dyn Future<Output = Result<Option<Bytes>, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn raw_receipts<'life0, 'async_trait>(
        &'life0 self,
        block: BlockNumberOrTagOrHash,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Bytes>, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn bad_blocks<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<()>, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

Client implementation for the DebugApi RPC API.

Provided Methods§

Source

fn raw_header<'life0, 'async_trait>( &'life0 self, block: BlockNumberOrTagOrHash, ) -> Pin<Box<dyn Future<Output = Result<Option<Bytes>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Returns an RLP-encoded header.

Source

fn raw_block<'life0, 'async_trait>( &'life0 self, block: BlockNumberOrTagOrHash, ) -> Pin<Box<dyn Future<Output = Result<Option<Bytes>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Returns an RLP-encoded block.

Source

fn raw_transaction<'life0, 'async_trait>( &'life0 self, transaction_hash: H256, ) -> Pin<Box<dyn Future<Output = Result<Option<Bytes>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Returns the EIP-2718 binary-encoded transaction.

Source

fn raw_receipts<'life0, 'async_trait>( &'life0 self, block: BlockNumberOrTagOrHash, ) -> Pin<Box<dyn Future<Output = Result<Vec<Bytes>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Returns an array of EIP-2718 binary-encoded receipts.

Source

fn bad_blocks<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<()>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Returns an array of recent bad blocks that the client has seen on the network.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<TypeJsonRpseeInteral> DebugApiClient for TypeJsonRpseeInteral
where TypeJsonRpseeInteral: ClientT,