Expand description
§alloy-rpc-types-engine
Types for the engine Ethereum JSON-RPC namespace.
Engine API types: https://github.com/ethereum/execution-apis/blob/main/src/engine/authentication.md and https://eips.ethereum.org/EIPS/eip-3675, following the execution specs https://github.com/ethereum/execution-apis/tree/6709c2a795b707202e93c4f2867fa0bf2640a84f/src/engine.
Re-exports§
pub use payload::*;
Modules§
- payload
- Payload types.
Structs§
- Blob
AndProof V1 - Blob type returned in responses to
engine_getBlobsV1: https://github.com/ethereum/execution-apis/pull/559 - Cancun
Payload Fields - Fields introduced in
engine_newPayloadV3that are not present in theExecutionPayloadRPC object. - Claims
jwt - Claims in JWT are used to represent a set of information about an entity.
- Client
Version V1 - Contains information which identifies a client implementation.
- Execution
Payload Sidecar - Container type for all available additional
newPayloadrequest parameters that are not present in theExecutionPayloadobject itself. - Forkchoice
State - This structure encapsulates the fork choice state
- Forkchoice
Updated - Represents a successfully processed forkchoice state update.
- JwtSecret
jwt - Value-object holding a reference to a hex-encoded 256-bit secret key.
- Maybe
Cancun Payload Fields - A container type for CancunPayloadFields that may or may not be present.
- Maybe
Prague Payload Fields - A container type for PraguePayloadFields that may or may not be present.
- Prague
Payload Fields - Fields introduced in
engine_newPayloadV4that are not present in theExecutionPayloadRPC object. - Transition
Configuration - This structure contains configurable settings of the transition process.
Enums§
- Client
Code - This enum defines a standard for specifying a client with just two letters. Clients teams which have a code reserved in this list MUST use this code when identifying themselves.
- Forkchoice
Update Error - A standalone forkchoice update errors for RPC.
- Forkchoice
Update Version - The version of the engine api.
- JwtError
jwt - Errors returned by the
JwtSecret - Payload
Error - Error that can occur when handling payloads.
- Payload
Validation Error - Various errors that can occur when validating a payload or forkchoice update.
Constants§
- CAPABILITIES
- The list of all supported Engine capabilities available over the engine endpoint.
- INVALID_
FORK_ CHOICE_ STATE_ ERROR - invalid forkchoice state error code.
- INVALID_
FORK_ CHOICE_ STATE_ ERROR_ MSG - invalid forkchoice state error message.
- INVALID_
PAYLOAD_ ATTRIBUTES_ ERROR - invalid payload attributes error code.
- INVALID_
PAYLOAD_ ATTRIBUTES_ ERROR_ MSG - invalid payload attributes error message.
Type Aliases§
- Fork
Choice Update Result - Represents possible variants of a processed forkchoice update.