You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: beacon-chain/rpc/prysm/beacon/ssz_query.go
+27-1Lines changed: 27 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,19 @@ import (
19
19
20
20
// QueryBeaconState handles SSZ Query request for BeaconState.
21
21
// Returns as bytes serialized SSZQueryResponse.
22
+
//
23
+
// @Summary Query beacon state with SSZ path
24
+
// @Description Executes an SSZ query on a beacon state and returns the result as SSZ-encoded bytes. Allows efficient extraction of specific fields from large state objects.
25
+
// @Tags Prysm Beacon
26
+
// @Accept json
27
+
// @Produce application/octet-stream
28
+
// @Param state_id path string true "State identifier (head, genesis, finalized, justified, slot number, or hex root)"
@@ -110,8 +123,21 @@ func (s *Server) QueryBeaconState(w http.ResponseWriter, r *http.Request) {
110
123
httputil.WriteSsz(w, responseSsz)
111
124
}
112
125
113
-
// QueryBeaconState handles SSZ Query request for BeaconState.
126
+
// QueryBeaconBlock handles SSZ Query request for BeaconBlock.
114
127
// Returns as bytes serialized SSZQueryResponse.
128
+
//
129
+
// @Summary Query beacon block with SSZ path
130
+
// @Description Executes an SSZ query on a beacon block and returns the result as SSZ-encoded bytes. Allows efficient extraction of specific fields from block objects.
Copy file name to clipboardExpand all lines: beacon-chain/rpc/prysm/node/handlers.go
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,14 @@ import (
19
19
)
20
20
21
21
// ListTrustedPeer retrieves data about the node's trusted peers.
22
+
//
23
+
// @Summary List trusted peers
24
+
// @Description Returns a list of all trusted peers configured on this beacon node, including their connection state, direction, ENR, and last seen address
Copy file name to clipboardExpand all lines: beacon-chain/rpc/prysm/validator/handlers.go
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,17 @@ import (
17
17
// GetParticipation retrieves the validator participation information for a given epoch,
18
18
// it returns the information about validator's participation rate in voting on the proof of stake
19
19
// rules based on their balance compared to the total active validator balance.
20
+
//
21
+
// @Summary Get validator participation for an epoch
22
+
// @Description Returns participation rate information for validators at a given state, including voting statistics and balance information for current and previous epochs
23
+
// @Tags Prysm Validator
24
+
// @Produce json
25
+
// @Param state_id path string true "State identifier (head, genesis, finalized, justified, slot number, or hex root)"
@@ -62,6 +73,17 @@ func (s *Server) GetParticipation(w http.ResponseWriter, r *http.Request) {
62
73
//
63
74
// This data includes any activations, voluntary exits, and involuntary
64
75
// ejections.
76
+
//
77
+
// @Summary Get active validator set changes
78
+
// @Description Returns validator set changes for a given epoch including activations, voluntary exits, slashings, and ejections with both public keys and indices
79
+
// @Tags Prysm Validator
80
+
// @Produce json
81
+
// @Param state_id path string true "State identifier (head, genesis, finalized, justified, slot number, or hex root)"
Copy file name to clipboardExpand all lines: beacon-chain/rpc/prysm/validator/validator_performance.go
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,17 @@ import (
14
14
)
15
15
16
16
// GetPerformance is an HTTP handler for GetPerformance.
17
+
//
18
+
// @Summary Get validator performance metrics
19
+
// @Description Returns detailed performance metrics for specified validators including voting accuracy, balances before and after epoch transitions, and inactivity scores
20
+
// @Tags Prysm Validator
21
+
// @Accept json
22
+
// @Produce json
23
+
// @Param request body structs.GetValidatorPerformanceRequest true "Validator public keys and/or indices to query"
0 commit comments