Documentation ¶
Index ¶
- Variables
- func NewClientFactory(params internal.RestapiClientParams) internal.ClientFactory
- type Client
- func (c *Client) BatchGetBlockMetadata(ctx context.Context, tag uint32, from uint64, to uint64) ([]*api.BlockMetadata, error)
- func (c *Client) CanReprocess(tag uint32, height uint64) bool
- func (c *Client) GetAccountProof(ctx context.Context, req *api.GetVerifiedAccountStateRequest) (*api.GetAccountProofResponse, error)
- func (c *Client) GetBlockByHash(ctx context.Context, tag uint32, height uint64, hash string, ...) (*api.Block, error)
- func (c *Client) GetBlockByHeight(ctx context.Context, tag uint32, height uint64, opts ...internal.ClientOption) (*api.Block, error)
- func (c *Client) GetLatestHeight(ctx context.Context) (uint64, error)
- func (c *Client) UpgradeBlock(ctx context.Context, block *api.Block, newTag uint32) (*api.Block, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( fx.Provide(fx.Annotated{ Name: "ethereum/beacon", Target: NewClientFactory, }), )
Functions ¶
func NewClientFactory ¶
func NewClientFactory(params internal.RestapiClientParams) internal.ClientFactory
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) BatchGetBlockMetadata ¶
func (*Client) GetAccountProof ¶
func (c *Client) GetAccountProof(ctx context.Context, req *api.GetVerifiedAccountStateRequest) (*api.GetAccountProofResponse, error)
func (*Client) GetBlockByHash ¶
func (*Client) GetBlockByHeight ¶
func (*Client) GetLatestHeight ¶
Click to show internal directories.
Click to hide internal directories.