# Functions
DepositContractAddress returns the deposit contract address for the given chain.
NewService sets up a new instance with an ethclient when given a web3 endpoint as a string in the config.
WithBeaconNodeStatsUpdater to set the beacon node stats updater.
WithDatabase for the beacon chain database.
WithDepositCache for caching deposits.
WithDepositContractAddress for the deposit contract.
WithEth1HeaderRequestLimit to set the upper limit of eth1 header requests.
WithFinalizedStateAtStartup to set the beacon node's finalized state at startup.
WithHeaders adds headers to the execution node JSON-RPC requests.
WithHttpEndpoint parse http endpoint for the powchain service to use.
WithHttpEndpointAndJWTSecret for authenticating the execution node JSON-RPC endpoint.
WithStateGen to regenerate beacon states from checkpoints.
WithStateNotifier for subscribing to state changes.
WithVerifierWaiter gives the sync package direct access to the verifier waiter.
# Constants
BlockByHashMethod request string for JSON-RPC.
BlockByNumberMethod request string for JSON-RPC.
ExchangeCapabilities request string for JSON-RPC.
ForkchoiceUpdatedMethod v1 request string for JSON-RPC.
ForkchoiceUpdatedMethodV2 v2 request string for JSON-RPC.
ForkchoiceUpdatedMethodV3 v3 request string for JSON-RPC.
GetBlobsV1 request string for JSON-RPC.
GetPayloadBodiesByHashV1 is the engine_getPayloadBodiesByHashX JSON-RPC method for pre-Electra payloads.
GetPayloadBodiesByRangeV1 is the engine_getPayloadBodiesByRangeX JSON-RPC method for pre-Electra payloads.
GetPayloadMethod v1 request string for JSON-RPC.
GetPayloadMethodV2 v2 request string for JSON-RPC.
GetPayloadMethodV3 is the get payload method added for deneb.
GetPayloadMethodV4 is the get payload method added for electra.
NewPayloadMethod v1 request string for JSON-RPC.
NewPayloadMethodV2 v2 request string for JSON-RPC.
NewPayloadMethodV4 is the engine_newPayloadVX method added at Electra.
# Variables
ErrAcceptedSyncingPayloadStatus when the status of the payload is syncing or accepted.
ErrHTTPTimeout returns true if the error is a http.Client timeout error.
ErrInternal corresponds to JSON-RPC code -32603.
ErrInvalidBlockHashPayloadStatus when the status of the payload fails to validate block hash.
ErrInvalidForkchoiceState corresponds to JSON-RPC code -38002.
ErrInvalidParams corresponds to JSON-RPC code -32602.
ErrInvalidPayloadAttributes corresponds to JSON-RPC code -38003.
ErrInvalidPayloadStatus when the status of the payload is invalid.
ErrInvalidRequest corresponds to JSON-RPC code -32600.
ErrMethodNotFound corresponds to JSON-RPC code -32601.
ErrNilResponse when the response is nil.
ErrNotAHeaderInfo will be returned when a cache object is not a pointer to a headerInfo struct.
ErrParse corresponds to JSON-RPC code -32700.
ErrRequestTooLarge when the request is too large.
ErrServer corresponds to JSON-RPC code -32000.
ErrUnknownPayload corresponds to JSON-RPC code -38001.
ErrUnknownPayloadStatus when the payload status is unknown.
ErrUnsupportedVersion represents a case where a payload is requested for a block type that doesn't have a known mapping.
# Structs
ForkchoiceUpdatedResponse is the response kind received by the engine_forkchoiceUpdatedV1 endpoint.
Service fetches important information about the canonical eth1 chain via a web3 endpoint using an ethclient.
# Interfaces
Chain defines a standard interface for the powchain service in Prysm.
ChainInfoFetcher retrieves information about eth1 metadata at the Ethereum consensus genesis time.
ChainStartFetcher retrieves information pertaining to the chain start event of the beacon chain for usage across various services.
EngineCaller defines a client that can interact with an Ethereum execution node's engine service via JSON-RPC.
POWBlockFetcher defines a struct that can retrieve mainchain blocks.
Reconstructor defines a service responsible for reconstructing full beacon chain objects by utilizing the execution API and making requests through the execution client.
RPCClient defines the rpc methods required to interact with the eth1 node.