Documentation ¶
Index ¶
- func FetchBlock(conn *grpc.ClientConn, slot uint64) (*ethpb.SignedBeaconBlock, error)
- func FetchChainConfig(conn *grpc.ClientConn) (map[string]interface{}, error)
- func FetchChainInfo(conn *grpc.ClientConn) (*ethpb.ChainHead, error)
- func FetchGenesisTime(conn *grpc.ClientConn) (time.Time, error)
- func FetchGenesisValidatorsRoot(conn *grpc.ClientConn) ([]byte, error)
- func FetchLatestFilledSlot(conn *grpc.ClientConn) (uint64, error)
- func FetchSyncing(conn *grpc.ClientConn) (bool, error)
- func FetchValidator(conn *grpc.ClientConn, account e2wtypes.Account) (*ethpb.Validator, error)
- func FetchValidatorBalance(conn *grpc.ClientConn, account e2wtypes.Account) (uint64, error)
- func FetchValidatorByIndex(conn *grpc.ClientConn, index uint64) (*ethpb.Validator, error)
- func FetchValidatorCommittees(conn *grpc.ClientConn, epoch uint64) (map[uint64][][]uint64, error)
- func FetchValidatorIndex(conn *grpc.ClientConn, account wtypes.Account) (uint64, error)
- func FetchValidatorInfo(conn *grpc.ClientConn, account e2wtypes.Account) (*ethpb.ValidatorInfo, error)
- func FetchValidatorPerformance(conn *grpc.ClientConn, account e2wtypes.Account) (bool, bool, bool, uint64, int64, error)
- func FetchValidatorState(conn *grpc.ClientConn, account wtypes.Account) (ethpb.ValidatorStatus, error)
- func FetchVersion(conn *grpc.ClientConn) (string, string, error)
- func StreamBlocks(conn *grpc.ClientConn) (ethpb.BeaconChain_StreamBlocksClient, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchBlock ¶ added in v1.3.0
func FetchBlock(conn *grpc.ClientConn, slot uint64) (*ethpb.SignedBeaconBlock, error)
FetchBlock fetches a block at a given slot from the beacon node.
func FetchChainConfig ¶
func FetchChainConfig(conn *grpc.ClientConn) (map[string]interface{}, error)
FetchChainConfig fetches the chain configuration from the beacon node. It tweaks the output to make it easier to work with by setting appropriate types.
func FetchChainInfo ¶ added in v1.2.4
func FetchChainInfo(conn *grpc.ClientConn) (*ethpb.ChainHead, error)
FetchChainInfo fetches current chain info from the beacon node.
func FetchGenesisTime ¶ added in v1.4.10
func FetchGenesisTime(conn *grpc.ClientConn) (time.Time, error)
FetchGenesisTime fetches the genesis time.
func FetchGenesisValidatorsRoot ¶ added in v1.4.10
func FetchGenesisValidatorsRoot(conn *grpc.ClientConn) ([]byte, error)
FetchGenesisValidatorsRoot fetches the genesis validators root.
func FetchLatestFilledSlot ¶ added in v1.4.16
func FetchLatestFilledSlot(conn *grpc.ClientConn) (uint64, error)
func FetchSyncing ¶ added in v1.3.0
func FetchSyncing(conn *grpc.ClientConn) (bool, error)
FetchSyncing returns true if the node is syncing, otherwise false.
func FetchValidator ¶
FetchValidator fetches the validator definition from the beacon node.
func FetchValidatorBalance ¶ added in v1.4.22
FetchValidatorBalance fetches the validator balance from the beacon node.
func FetchValidatorByIndex ¶ added in v1.3.0
FetchValidatorByIndex fetches the validator definition from the beacon node.
func FetchValidatorCommittees ¶ added in v1.4.22
FetchValidatorCommittees fetches the validator committees for a given epoch.
func FetchValidatorIndex ¶
FetchValidatorIndex fetches the index of a validator.
func FetchValidatorInfo ¶ added in v1.2.3
func FetchValidatorInfo(conn *grpc.ClientConn, account e2wtypes.Account) (*ethpb.ValidatorInfo, error)
FetchValidatorInfo fetches current validator info from the beacon node.
func FetchValidatorPerformance ¶ added in v1.4.22
func FetchValidatorPerformance(conn *grpc.ClientConn, account e2wtypes.Account) (bool, bool, bool, uint64, int64, error)
FetchValidatorPerformance fetches the validator performance from the beacon node.
func FetchValidatorState ¶
func FetchValidatorState(conn *grpc.ClientConn, account wtypes.Account) (ethpb.ValidatorStatus, error)
FetchValidatorState fetches the state of a validator.
func FetchVersion ¶ added in v1.3.0
func FetchVersion(conn *grpc.ClientConn) (string, string, error)
FetchVersion fetches the version and metadata from the server.
func StreamBlocks ¶ added in v1.4.16
func StreamBlocks(conn *grpc.ClientConn) (ethpb.BeaconChain_StreamBlocksClient, error)
Types ¶
This section is empty.