Documentation ¶
Index ¶
- type Client
- func (c *Client) GetFeeRecipientAddress(ctx context.Context, pubkey string) (*rpc.GetFeeRecipientByPubkeyResponse, error)
- func (c *Client) GetFeeRecipientAddresses(ctx context.Context, validators []string) ([]string, error)
- func (c *Client) GetLocalValidatorKeys(ctx context.Context) (*rpc.ListKeystoresResponse, error)
- func (c *Client) GetRemoteValidatorKeys(ctx context.Context) (*rpc.ListRemoteKeysResponse, error)
- func (c *Client) GetValidatorPubKeys(ctx context.Context) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client provides a collection of helper methods for calling the Keymanager API endpoints.
func NewClient ¶
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 ¶
GetLocalValidatorKeys calls the keymanager APIs for local validator keys
func (*Client) GetRemoteValidatorKeys ¶
GetRemoteValidatorKeys calls the keymanager APIs for web3signer validator keys
Click to show internal directories.
Click to hide internal directories.