Documentation ¶
Overview ¶
Package debug defines a gRPC beacon service implementation, following the official API standards https://ethereum.github.io/beacon-apis/#/. This package includes the beacon and config endpoints.
Index ¶
- type Server
- func (ds *Server) GetBeaconStateSSZ(ctx context.Context, req *ethpbv1.StateRequest) (*ethpbv2.SSZContainer, error)
- func (ds *Server) GetBeaconStateSSZV2(ctx context.Context, req *ethpbv2.BeaconStateRequestV2) (*ethpbv2.SSZContainer, error)
- func (ds *Server) GetBeaconStateV2(ctx context.Context, req *ethpbv2.BeaconStateRequestV2) (*ethpbv2.BeaconStateResponseV2, error)
- func (ds *Server) GetForkChoice(ctx context.Context, _ *emptypb.Empty) (*ethpbv1.ForkChoiceDump, error)
- func (ds *Server) ListForkChoiceHeadsV2(ctx context.Context, _ *emptypb.Empty) (*ethpbv2.ForkChoiceHeadsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { BeaconDB db.ReadOnlyDatabase HeadFetcher blockchain.HeadFetcher Stater lookup.Stater OptimisticModeFetcher blockchain.OptimisticModeFetcher ForkFetcher blockchain.ForkFetcher ForkchoiceFetcher blockchain.ForkchoiceFetcher FinalizationFetcher blockchain.FinalizationFetcher ChainInfoFetcher blockchain.ChainInfoFetcher }
Server defines a server implementation of the gRPC Beacon Chain service, providing RPC endpoints to access data relevant to the Ethereum Beacon Chain.
func (*Server) GetBeaconStateSSZ ¶
func (ds *Server) GetBeaconStateSSZ(ctx context.Context, req *ethpbv1.StateRequest) (*ethpbv2.SSZContainer, error)
GetBeaconStateSSZ returns the SSZ-serialized version of the full beacon state object for given state ID.
func (*Server) GetBeaconStateSSZV2 ¶
func (ds *Server) GetBeaconStateSSZV2(ctx context.Context, req *ethpbv2.BeaconStateRequestV2) (*ethpbv2.SSZContainer, error)
GetBeaconStateSSZV2 returns the SSZ-serialized version of the full beacon state object for given state ID.
func (*Server) GetBeaconStateV2 ¶
func (ds *Server) GetBeaconStateV2(ctx context.Context, req *ethpbv2.BeaconStateRequestV2) (*ethpbv2.BeaconStateResponseV2, error)
GetBeaconStateV2 returns the full beacon state for a given state ID.
func (*Server) GetForkChoice ¶
func (ds *Server) GetForkChoice(ctx context.Context, _ *emptypb.Empty) (*ethpbv1.ForkChoiceDump, error)
GetForkChoice returns a dump fork choice store.
func (*Server) ListForkChoiceHeadsV2 ¶
func (ds *Server) ListForkChoiceHeadsV2(ctx context.Context, _ *emptypb.Empty) (*ethpbv2.ForkChoiceHeadsResponse, error)
ListForkChoiceHeadsV2 retrieves the leaves of the current fork choice tree.