Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
const ( // ForkchoiceUpdatedMethod v1 request string for JSON-RPC. ForkchoiceUpdatedMethod = "engine_forkchoiceUpdatedV1" // ForkchoiceUpdatedMethodV2 v2 request string for JSON-RPC. ForkchoiceUpdatedMethodV2 = "engine_forkchoiceUpdatedV2" // ForkchoiceUpdatedMethodV3 v3 request string for JSON-RPC. ForkchoiceUpdatedMethodV3 = "engine_forkchoiceUpdatedV3" // GetPayloadMethod v1 request string for JSON-RPC. GetPayloadMethod = "engine_getPayloadV1" // GetPayloadMethodV2 v2 request string for JSON-RPC. GetPayloadMethodV2 = "engine_getPayloadV2" // GetPayloadMethodV3 v3 request string for JSON-RPC. GetPayloadMethodV3 = "engine_getPayloadV3" // GetPayloadMethodV4 v4 request string for JSON-RPC. GetPayloadMethodV4 = "engine_getPayloadV4" )
Variables ¶
This section is empty.
Functions ¶
func ExecutionPayloadResponseFromData ¶
func ExecutionPayloadResponseFromData(v int, ed interfaces.ExecutionData, bundle *v1.BlobsBundle) (*builderAPI.ExecutionPayloadResponse, error)
ExecutionPayloadResponseFromData converts an ExecutionData interface value to a payload response. This involves serializing the execution payload value so that the abstract payload envelope can be used.
Types ¶
type Builder ¶
type Builder struct {
	// contains filtered or unexported fields
}
    func New ¶
New creates a proxy server forwarding requests from a consensus client to an execution client.
type ExecPayloadResponse ¶
type ExecPayloadResponse struct {
	Version string               `json:"version"`
	Data    *v1.ExecutionPayload `json:"data"`
}
    type ForkchoiceUpdatedResponse ¶
type ForkchoiceUpdatedResponse struct {
	Jsonrpc string        `json:"jsonrpc"`
	Method  string        `json:"method"`
	Params  []interface{} `json:"params"`
	ID      uint64        `json:"id"`
	Result  struct {
		Status    *v1.PayloadStatus  `json:"payloadStatus"`
		PayloadId *v1.PayloadIDBytes `json:"payloadId"`
	} `json:"result"`
}
    type Option ¶
func WithDestinationAddress ¶
WithDestinationAddress sets the forwarding address requests will be sent to.
func WithJwtSecret ¶
WithJwtSecret adds in support for jwt authenticated connections for our proxy.
func WithLogFile ¶
WithLogFile specifies a log file to write the proxies output to.
func WithLogger ¶
WithLogger sets a custom logger for the proxy.
 Click to show internal directories. 
   Click to hide internal directories.