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" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 ExecHeaderResponseCapella ¶
type ExecHeaderResponseCapella struct { Version string `json:"version"` Data struct { Signature hexutil.Bytes `json:"signature"` Message *builderAPI.BuilderBidCapella `json:"message"` } `json:"data"` }
type ExecHeaderResponseDeneb ¶
type ExecHeaderResponseDeneb struct { Version string `json:"version"` Data struct { Signature hexutil.Bytes `json:"signature"` Message *builderAPI.BuilderBidDeneb `json:"message"` } `json:"data"` }
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.