mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-06 01:32:18 +00:00
2e33595187
* implement get beacon state * gaz * Merge branch 'master' into implement-debug-state * passing tests * enable with featureconfig * struct oder * Update beacon-chain/rpc/beacon/state.go * Merge refs/heads/master into implement-debug-state * lint resolve * Merge branch 'implement-debug-state' of github.com:prysmaticlabs/prysm into implement-debug-state * tested at runtime * fix build * Merge branch 'master' into implement-debug-state * Merge refs/heads/master into implement-debug-state * Merge refs/heads/master into implement-debug-state * Merge refs/heads/master into implement-debug-state * Merge refs/heads/master into implement-debug-state * Merge refs/heads/master into implement-debug-state * build and fmt * conf * Merge refs/heads/master into implement-debug-state * Merge refs/heads/master into implement-debug-state * Merge refs/heads/master into implement-debug-state * Merge refs/heads/master into implement-debug-state * Merge refs/heads/master into implement-debug-state
30 lines
919 B
Protocol Buffer
30 lines
919 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package ethereum.beacon.rpc.v1;
|
|
|
|
import "proto/beacon/p2p/v1/types.proto";
|
|
import "google/api/annotations.proto";
|
|
|
|
// Debug service API
|
|
//
|
|
// The debug service in Prysm provides API access to various utilities
|
|
// for debugging the beacon node's functionality at runtime, such as being able
|
|
// to retrieve the beacon state by block root or state root from the node directly.
|
|
service Debug {
|
|
// Returns a beacon state by filter criteria from the beacon node.
|
|
rpc GetBeaconState(BeaconStateRequest) returns (ethereum.beacon.p2p.v1.BeaconState) {
|
|
option (google.api.http) = {
|
|
get: "/eth/v1alpha1/beacon/state"
|
|
};
|
|
}
|
|
}
|
|
|
|
message BeaconStateRequest {
|
|
oneof query_filter {
|
|
// The slot corresponding to a desired beacon state.
|
|
uint64 slot = 1;
|
|
|
|
// The block root corresponding to a desired beacon state.
|
|
bytes block_root = 2;
|
|
}
|
|
} |