chain

package
v0.0.0-...-ac47704 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service is a chain service.

func New

func New(ctx context.Context,
	address string,
) (
	*Service,
	error,
)

New generates a new chain service.

func (*Service) Block

func (s *Service) Block(ctx context.Context,
	blockID string,
) (
	*spec.VersionedSignedBeaconBlock,
	error,
)

func (*Service) State

func (s *Service) State(ctx context.Context,
	stateID string,
) (
	*spec.VersionedBeaconState,
	error,
)

func (*Service) Validator

func (s *Service) Validator(ctx context.Context,
	stateID string,
	validatorID string,
) (
	*apiv1.Validator,
	error,
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL