Versions in this module Expand all Collapse all v1 v1.0.0 May 9, 2022 Changes in this version + var INVALID = ForkChoiceResponse + var InvalidPayloadID = rpc.CustomError + var SUCCESS = GenericStringResponse + var SYNCING = ForkChoiceResponse + var UnknownHeader = rpc.CustomError + var UnknownPayload = rpc.CustomError + var VALID = GenericStringResponse + func ExecutableDataToBlock(params ExecutableDataV1) (*types.Block, error) + func Register(stack *node.Node, backend *eth.Ethereum) error + func RegisterLight(stack *node.Node, backend *les.LightEthereum) error + type ConsensusAPI struct + func NewConsensusAPI(eth *eth.Ethereum, les *les.LightEthereum) *ConsensusAPI + func (api *ConsensusAPI) ExecutePayloadV1(params ExecutableDataV1) (ExecutePayloadResponse, error) + func (api *ConsensusAPI) ForkchoiceUpdatedV1(heads ForkchoiceStateV1, PayloadAttributes *PayloadAttributesV1) (ForkChoiceResponse, error) + func (api *ConsensusAPI) GetPayloadV1(payloadID hexutil.Bytes) (*ExecutableDataV1, error) + type ConsensusValidatedParams struct + BlockHash common.Hash + Status string + type ExecutableDataV1 struct + BaseFeePerGas *big.Int + BlockHash common.Hash + Coinbase common.Address + ExtraData []byte + GasLimit uint64 + GasUsed uint64 + LogsBloom []byte + Number uint64 + ParentHash common.Hash + Random common.Hash + ReceiptRoot common.Hash + StateRoot common.Hash + Timestamp uint64 + Transactions [][]byte + func BlockToExecutableData(block *types.Block, random common.Hash) *ExecutableDataV1 + func (e *ExecutableDataV1) UnmarshalJSON(input []byte) error + func (e ExecutableDataV1) MarshalJSON() ([]byte, error) + type ExecutePayloadResponse struct + LatestValidHash common.Hash + Status string + type ForkChoiceResponse struct + PayloadID *hexutil.Bytes + Status string + type ForkchoiceStateV1 struct + FinalizedBlockHash common.Hash + HeadBlockHash common.Hash + SafeBlockHash common.Hash + type GenericResponse struct + Success bool + type GenericStringResponse struct + Status string + type NewBlockResponse struct + Valid bool + type PayloadAttributesV1 struct + FeeRecipient common.Address + Random common.Hash + Timestamp uint64 + func (p *PayloadAttributesV1) UnmarshalJSON(input []byte) error + func (p PayloadAttributesV1) MarshalJSON() ([]byte, error) + type PayloadResponse struct + PayloadID uint64 + func (p *PayloadResponse) UnmarshalJSON(input []byte) error + func (p PayloadResponse) MarshalJSON() ([]byte, error)