All Downloads are FREE. Search and download functionalities are using the official Maven repository.

waves.events.grpc.blockchain_updates.proto Maven / Gradle / Ivy

There is a newer version: 1.5.2
Show newest version
syntax = "proto3";
package waves.events.grpc;
option java_package = "com.wavesplatform.events.api.grpc.protobuf";
option csharp_namespace = "Waves.Events.Grpc";

import "waves/events/events.proto";

service BlockchainUpdatesApi {
    rpc GetBlockUpdate (GetBlockUpdateRequest) returns (GetBlockUpdateResponse);
    rpc GetBlockUpdatesRange (GetBlockUpdatesRangeRequest) returns (GetBlockUpdatesRangeResponse);
    rpc Subscribe (SubscribeRequest) returns (stream SubscribeEvent);
}

message GetBlockUpdateRequest {
    int32 height = 1;
}

message GetBlockUpdateResponse {
    waves.events.BlockchainUpdated update = 1;
}

message GetBlockUpdatesRangeRequest {
    // both required, inclusive
    int32 from_height = 1;
    int32 to_height = 2;
}

message GetBlockUpdatesRangeResponse {
    repeated waves.events.BlockchainUpdated updates = 1;
}

message SubscribeRequest {
    // Optional. Default: start at the genesis, height 1.
    int32 from_height = 1;
    // Optional. Default: stream historical, then switch to current events.
    int32 to_height = 2;
}

message SubscribeEvent {
    waves.events.BlockchainUpdated update = 1;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy