-
Notifications
You must be signed in to change notification settings - Fork 1
/
blocks_api.proto
39 lines (32 loc) · 912 Bytes
/
blocks_api.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
syntax = "proto3";
package waves.node.grpc;
option java_package = "com.wavesplatform.api.grpc";
option csharp_namespace = "Waves.Node.Grpc";
import "block.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/wrappers.proto";
service BlocksApi {
rpc GetBlock (BlockRequest) returns (BlockWithHeight);
rpc GetBlockRange (BlockRangeRequest) returns (stream BlockWithHeight);
rpc GetCurrentHeight (google.protobuf.Empty) returns (google.protobuf.UInt32Value);
}
message BlockRequest {
oneof request {
bytes block_id = 1;
int32 height = 2;
bytes reference = 3;
}
bool include_transactions = 100;
}
message BlockRangeRequest {
uint32 from_height = 1;
uint32 to_height = 2;
oneof filter {
bytes generator = 3;
}
bool include_transactions = 100;
}
message BlockWithHeight {
Block block = 1;
uint32 height = 2;
}