validator

package
v4.0.0-...-ae7b6de Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*client.Client
}

Client provides a collection of helper methods for calling the Keymanager API endpoints.

func NewClient

func NewClient(host string, opts ...client.ClientOpt) (*Client, error)

NewClient returns a new Client that includes functions for REST calls to keymanager APIs.

func (*Client) GetFeeRecipientAddress

func (c *Client) GetFeeRecipientAddress(ctx context.Context, pubkey string) (*rpc.GetFeeRecipientByPubkeyResponse, error)

GetFeeRecipientAddress takes a public key and calls the keymanager API to return its fee recipient.

func (*Client) GetFeeRecipientAddresses

func (c *Client) GetFeeRecipientAddresses(ctx context.Context, validators []string) ([]string, error)

GetFeeRecipientAddresses takes a list of validators in hex format and returns an equal length list of fee recipients in hex format.

func (*Client) GetLocalValidatorKeys

func (c *Client) GetLocalValidatorKeys(ctx context.Context) (*rpc.ListKeystoresResponse, error)

GetLocalValidatorKeys calls the keymanager APIs for local validator keys

func (*Client) GetRemoteValidatorKeys

func (c *Client) GetRemoteValidatorKeys(ctx context.Context) (*rpc.ListRemoteKeysResponse, error)

GetRemoteValidatorKeys calls the keymanager APIs for web3signer validator keys

func (*Client) GetValidatorPubKeys

func (c *Client) GetValidatorPubKeys(ctx context.Context) ([]string, error)

GetValidatorPubKeys gets the current list of web3signer or the local validator public keys in hex format.

Jump to

Keyboard shortcuts

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