pub type RpcBlock<T> = Block<<T as Network>::TransactionResponse, <T as Network>::HeaderResponse>;
Expand description
Adapter for network specific block type.
Aliased Type§
struct RpcBlock<T> {
pub header: <T as Network>::HeaderResponse,
pub uncles: Vec<FixedBytes<32>>,
pub transactions: BlockTransactions<<T as Network>::TransactionResponse>,
pub withdrawals: Option<Withdrawals>,
}
Fields§
§header: <T as Network>::HeaderResponse
Header of the block.
uncles: Vec<FixedBytes<32>>
Uncles’ hashes.
transactions: BlockTransactions<<T as Network>::TransactionResponse>
Block Transactions. In the case of an uncle block, this field is not included in RPC responses, and when deserialized, it will be set to BlockTransactions::Uncle.
withdrawals: Option<Withdrawals>
Withdrawals in the block.
Layout§
Note: Encountered an error during type layout; the type failed to be normalized.