Documentation ¶
Index ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) ExitValidator(validatorIndex, epoch uint64, signature types.ValidatorSignature) error
- func (c *Client) GetBeaconHead() (beacon.BeaconHead, error)
- func (c *Client) GetClientType() beacon.BeaconClientType
- func (c *Client) GetDomainData(domainType []byte, epoch uint64) ([]byte, error)
- func (c *Client) GetEth1DataForEth2Block(blockId string) (beacon.Eth1Data, error)
- func (c *Client) GetEth2Config() (beacon.Eth2Config, error)
- func (c *Client) GetEth2DepositContract() (beacon.Eth2DepositContract, error)
- func (c *Client) GetSyncStatus() (beacon.SyncStatus, error)
- func (c *Client) GetValidatorIndex(pubkey types.ValidatorPubkey) (uint64, error)
- func (c *Client) GetValidatorStatus(pubkey types.ValidatorPubkey, opts *beacon.ValidatorStatusOptions) (beacon.ValidatorStatus, error)
- func (c *Client) GetValidatorStatuses(pubkeys []types.ValidatorPubkey, opts *beacon.ValidatorStatusOptions) (map[types.ValidatorPubkey]beacon.ValidatorStatus, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Prysm client
func (*Client) ExitValidator ¶ added in v0.0.6
func (c *Client) ExitValidator(validatorIndex, epoch uint64, signature types.ValidatorSignature) error
Perform a voluntary exit on a validator
func (*Client) GetBeaconHead ¶
func (c *Client) GetBeaconHead() (beacon.BeaconHead, error)
Get the beacon head
func (*Client) GetClientType ¶ added in v1.0.0
func (c *Client) GetClientType() beacon.BeaconClientType
Get the beacon client type
func (*Client) GetDomainData ¶ added in v0.0.6
Get domain data for a domain type at a given epoch
func (*Client) GetEth1DataForEth2Block ¶ added in v1.0.0
Get the ETH1 data for the target beacon block
func (*Client) GetEth2Config ¶
func (c *Client) GetEth2Config() (beacon.Eth2Config, error)
Get the eth2 config
func (*Client) GetEth2DepositContract ¶ added in v1.0.0
func (c *Client) GetEth2DepositContract() (beacon.Eth2DepositContract, error)
Get the eth2 deposit contract info
func (*Client) GetSyncStatus ¶
func (c *Client) GetSyncStatus() (beacon.SyncStatus, error)
Get the node's sync status
func (*Client) GetValidatorIndex ¶ added in v0.0.6
func (c *Client) GetValidatorIndex(pubkey types.ValidatorPubkey) (uint64, error)
Get a validator's index
func (*Client) GetValidatorStatus ¶
func (c *Client) GetValidatorStatus(pubkey types.ValidatorPubkey, opts *beacon.ValidatorStatusOptions) (beacon.ValidatorStatus, error)
Get a validator's status
func (*Client) GetValidatorStatuses ¶ added in v0.0.4
func (c *Client) GetValidatorStatuses(pubkeys []types.ValidatorPubkey, opts *beacon.ValidatorStatusOptions) (map[types.ValidatorPubkey]beacon.ValidatorStatus, error)
Get multiple validators' statuses
Click to show internal directories.
Click to hide internal directories.