waves.node.grpc.blocks_api.proto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protobuf-schemas Show documentation
Show all versions of protobuf-schemas Show documentation
Waves Node protobuf java classes
syntax = "proto3";
package waves.node.grpc;
option java_package = "com.wavesplatform.api.grpc";
option csharp_namespace = "Waves.Node.Grpc";
option go_package = "github.com/wavesplatform/gowaves/pkg/grpc/generated/waves/node/grpc";
import "waves/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_public_key = 3;
bytes generator_address = 4;
}
bool include_transactions = 100;
}
message BlockWithHeight {
Block block = 1;
uint32 height = 2;
}