Module alloy_rpc_types_eth::block
source · Expand description
Block RPC types.
Structs§
- Block representation
- Block number and hash.
- BlockOverrides is a set of header fields to override.
- An iterator over the transaction hashes of a block.
- An Iterator over the transaction hashes of a block.
- Block header representation.
- Value representation with additional info
- A block hash which may have a boolean requireCanonical field. If false, an RPC call should raise if a block matching the hash is not found. If true, an RPC call should additionally raise if the block is not in the canonical chain. https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1898.md#specification
Enums§
- Error that can occur when converting other types to blocks
- Either a block hash or a block number
- A Block Identifier. https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1898.md
- A block Number (or tag - “latest”, “earliest”, “pending”)
- Block Transactions depending on the boolean attribute of
eth_getBlockBy*
, or if used byeth_getUncle*
- Determines how the
transactions
field of Block should be filled.
Functions§
- Calculates the blob gas price from the header’s excess blob gas field.
- Calculates the
excess_blob_gas
from the parent header’sblob_gas_used
andexcess_blob_gas
.
Type Aliases§
- Block number and hash of the forked block.
- A Block representation that allows to include additional fields
- Header representation with additional info.