Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ForkchoiceUpdatedMethodV2 v2 request string for JSON-RPC. ForkchoiceUpdatedMethodV2 = "engine_forkchoiceUpdatedV2" // GetPayloadMethodV2 v2 request string for JSON-RPC. GetPayloadMethodV2 = "engine_getPayloadV2" )
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 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.