Documentation ¶
Index ¶
- type Client
- func (c *Client) GetFeeRecipientAddress(ctx context.Context, pubkey string) (*apimiddleware.GetFeeRecipientByPubkeyResponseJson, error)
- func (c *Client) GetFeeRecipientAddresses(ctx context.Context, validators []string) ([]string, error)
- func (c *Client) GetLocalValidatorKeys(ctx context.Context) (*apimiddleware.ListKeystoresResponseJson, error)
- func (c *Client) GetRemoteValidatorKeys(ctx context.Context) (*apimiddleware.ListRemoteKeysResponseJson, 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) (*apimiddleware.GetFeeRecipientByPubkeyResponseJson, 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) (*apimiddleware.ListKeystoresResponseJson, error)
GetLocalValidatorKeys calls the keymanager APIs for local validator keys
func (*Client) GetRemoteValidatorKeys ¶
func (c *Client) GetRemoteValidatorKeys(ctx context.Context) (*apimiddleware.ListRemoteKeysResponseJson, error)
GetRemoteValidatorKeys calls the keymanager APIs for web3signer validator keys
Click to show internal directories.
Click to hide internal directories.