Module reth_rpc_types_compat::block
source · Expand description
Compatibility functions for rpc Block
type.
Functions§
- Converts the given primitive block into a [
Block
] response with the given [BlockTransactionsKind
] - Create a new [
Block
] response from a primitive block, using the total difficulty to populate its field in the rpc response. - Create a new [
Block
] response from a primitive block, using the total difficulty to populate its field in the rpc response. - Converts from a [
reth_primitives::SealedHeader
] to a [reth_rpc_types::Header
] - Build an RPC block response representing an Uncle from its header.