Documentation
¶
Index ¶
Constants ¶
View Source
const ( SpecPath = "/eth/v1/config/spec" SyncPath = "/eth/v1/node/syncing" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeaconService ¶
type BeaconService struct {
// contains filtered or unexported fields
}
func NewBeaconService ¶
func NewBeaconService() *BeaconService
func (*BeaconService) Configure ¶
func (b *BeaconService) Configure(cfg config.BeaconConfig) error
func (*BeaconService) ConnectedChainId ¶
func (b *BeaconService) ConnectedChainId() *big.Int
func (*BeaconService) Status ¶
func (b *BeaconService) Status() (res *SyncStatusData, err error)
func (*BeaconService) SubscribeToHeadEvents ¶
func (b *BeaconService) SubscribeToHeadEvents(ctx context.Context, headEvent chan<- HeadEventData) error
type GetSyncStatusResponse ¶
type GetSyncStatusResponse struct {
Data *SyncStatusData `json:"data"`
}
type HeadEventData ¶
Click to show internal directories.
Click to hide internal directories.