Documentation ¶
Overview ¶
Package debugv1 defines a gRPC beacon service implementation, following the official API standards https://ethereum.github.io/eth2.0-APIs/#/. This package includes the beacon and config endpoints.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { Ctx context.Context BeaconDB db.ReadOnlyDatabase HeadFetcher blockchain.HeadFetcher StateFetcher statefetcher.Fetcher }
Server defines a server implementation of the gRPC Beacon Chain service, providing RPC endpoints to access data relevant to the Ethereum 2.0 phase 0 beacon chain.
func (*Server) GetBeaconState ¶ added in v1.3.6
func (ds *Server) GetBeaconState(ctx context.Context, req *ethpb.StateRequest) (*ethpb.BeaconStateResponse, error)
GetBeaconState returns the full beacon state for a given state id.
func (*Server) ListForkChoiceHeads ¶ added in v1.3.6
func (ds *Server) ListForkChoiceHeads(ctx context.Context, _ *ptypes.Empty) (*ethpb.ForkChoiceHeadsResponse, error)
ListForkChoiceHeads retrieves the fork choice leaves for the current head.
Click to show internal directories.
Click to hide internal directories.