Trait RpcTypes

Source
pub trait RpcTypes {
    type Header: RpcObject;
    type Receipt: RpcObject + ReceiptResponse;
    type Transaction: RpcObject + TransactionResponse;
}
Expand description

RPC types used by the eth_ RPC API.

This is a subset of [alloy_network::Network] trait with only RPC response types kept.

Required Associated Types§

Source

type Header: RpcObject

Header response type.

Source

type Receipt: RpcObject + ReceiptResponse

Receipt response type.

Source

type Transaction: RpcObject + TransactionResponse

Transaction response type.

Implementors§

Source§

impl<T> RpcTypes for T
where T: Network,

Source§

type Header = <T as Network>::HeaderResponse

Source§

type Receipt = <T as Network>::ReceiptResponse

Source§

type Transaction = <T as Network>::TransactionResponse