Module reth::api

source ·
Expand description

Re-exported from reth_node_api.

Modules§

  • Traits, validation methods, and helper types used to abstract over engine types.
  • Traits for configuring a node.
  • This crate defines abstractions to create and update payloads (blocks)
  • Type abstraction for node primitive types.

Structs§

Enums§

Traits§

  • Represents a built payload type that contains a built SealedBlock and can be converted into engine API execution payloads.
  • Trait for configuring the EVM for executing full blocks.
  • This represents the set of methods used to configure the EVM’s environment before block execution.
  • This type defines the versioned types of the engine API.
  • Encapsulates all types and components of the node.
  • A helper trait that is downstream of the NodeTypes trait and adds stateful components to the node.
  • Helper trait to unify all provider traits for simplicity.
  • The type that configures the essential types of an ethereum like node.
  • The execution payload attribute type the CL node emits via the engine API. This trait should be implemented by types that could be used to spawn a payload job.
  • This can be implemented by types that describe a currently running payload job.
  • The types that are used by the engine API.

Functions§

  • Validate the presence of the parentBeaconBlockRoot field according to the given timestamp. This method is meant to be used with either a payloadAttributes field or a full payload, with the engine_forkchoiceUpdated and engine_newPayload methods respectively.
  • Validates the timestamp depending on the version called:
  • Validates the presence or exclusion of fork-specific fields based on the ethereum execution payload, or payload attributes, and the message version.
  • Validates the presence of the withdrawals field according to the payload timestamp. After Shanghai, withdrawals field must be Some. Before Shanghai, withdrawals field must be None;