Versions in this module Expand all Collapse all v1 v1.14.2 Aug 2, 2025 Changes in this version + type Client struct + func NewClient(conn interface{}) *Client + func (c *Client) GetCurrentHeight(ctx context.Context) (uint64, error) + func (c *Client) GetMinimumHeight(ctx context.Context) (uint64, error) + func (c *Client) GetSubnetID(ctx context.Context) (ids.ID, error) + func (c *Client) GetValidatorSet(ctx context.Context, height uint64) (map[ids.NodeID]*validators.GetValidatorOutput, error) + type GRPCClient struct + func NewGRPCClient(client validatorstatepb.ValidatorStateClient) *GRPCClient + func (c *GRPCClient) ApplyValidatorPublicKeyDiffs(ctx context.Context, validators map[ids.NodeID]*validators.GetValidatorOutput, ...) error + func (c *GRPCClient) ApplyValidatorWeightDiffs(ctx context.Context, validators map[ids.NodeID]*validators.GetValidatorOutput, ...) error + func (c *GRPCClient) GetCurrentHeight(ctx context.Context) (uint64, error) + func (c *GRPCClient) GetCurrentValidatorSet(ctx context.Context, subnetID ids.ID) (map[ids.ID]*validators.GetCurrentValidatorOutput, uint64, error) + func (c *GRPCClient) GetMinimumHeight(ctx context.Context) (uint64, error) + func (c *GRPCClient) GetSubnetID(ctx context.Context, chainID ids.ID) (ids.ID, error) + func (c *GRPCClient) GetValidatorSet(ctx context.Context, height uint64, subnetID ids.ID) (map[ids.NodeID]*validators.GetValidatorOutput, error) + type GRPCServer struct + func NewGRPCServer(state validators.State) *GRPCServer + func (s *GRPCServer) GetCurrentHeight(ctx context.Context, _ *emptypb.Empty) (*validatorstatepb.GetCurrentHeightResponse, error) + func (s *GRPCServer) GetCurrentValidatorSet(ctx context.Context, req *validatorstatepb.GetCurrentValidatorSetRequest) (*validatorstatepb.GetCurrentValidatorSetResponse, error) + func (s *GRPCServer) GetMinimumHeight(ctx context.Context, _ *emptypb.Empty) (*validatorstatepb.GetMinimumHeightResponse, error) + func (s *GRPCServer) GetSubnetID(ctx context.Context, req *validatorstatepb.GetSubnetIDRequest) (*validatorstatepb.GetSubnetIDResponse, error) + func (s *GRPCServer) GetValidatorSet(ctx context.Context, req *validatorstatepb.GetValidatorSetRequest) (*validatorstatepb.GetValidatorSetResponse, error) + type GetCurrentHeightRequest struct + type GetCurrentHeightResponse struct + Height uint64 + type GetMinimumHeightRequest struct + type GetMinimumHeightResponse struct + Height uint64 + type GetSubnetIDRequest struct + ChainID []byte + type GetSubnetIDResponse struct + SubnetID []byte + type GetValidatorSetRequest struct + Height uint64 + SubnetID []byte + type GetValidatorSetResponse struct + Validators []*ValidatorOutput + type Server struct + func NewServer(state validators.State) *Server + func (s *Server) GetCurrentHeight(ctx context.Context, _ *emptypb.Empty) (*validatorstate.GetCurrentHeightResponse, error) + func (s *Server) GetMinimumHeight(ctx context.Context, req interface{}) (interface{}, error) + func (s *Server) GetSubnetID(ctx context.Context, req interface{}) (interface{}, error) + func (s *Server) GetValidatorSet(ctx context.Context, req interface{}) (interface{}, error) + type ValidatorOutput struct + NodeID []byte + PublicKey []byte + Weight uint64 Other modules containing this package github.com/luxfi/node/v2