beacon

package
v0.0.0-...-ae0dd77 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Options(
	fx.Provide(fx.Annotated{
		Name:   "ethereum/beacon",
		Target: NewClientFactory,
	}),
)

Functions

Types

type Client

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

func (*Client) BatchGetBlockMetadata

func (c *Client) BatchGetBlockMetadata(ctx context.Context, tag uint32, from uint64, to uint64) ([]*api.BlockMetadata, error)

func (*Client) CanReprocess

func (c *Client) CanReprocess(tag uint32, height uint64) bool

func (*Client) GetBlockByHash

func (c *Client) GetBlockByHash(ctx context.Context, tag uint32, height uint64, hash string, ops ...internal.ClientOption) (*api.Block, error)

func (*Client) GetBlockByHeight

func (c *Client) GetBlockByHeight(ctx context.Context, tag uint32, height uint64, opts ...internal.ClientOption) (*api.Block, error)

func (*Client) GetLatestHeight

func (c *Client) GetLatestHeight(ctx context.Context) (uint64, error)

func (*Client) UpgradeBlock

func (c *Client) UpgradeBlock(ctx context.Context, block *api.Block, newTag uint32) (*api.Block, error)

Jump to

Keyboard shortcuts

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