github.com/line/ostracon@v1.0.10-0.20230328032236-7f20145f065d/proto/ostracon/rpc/grpc/types.proto (about)

     1  syntax = "proto3";
     2  package ostracon.rpc.grpc;
     3  option  go_package = "github.com/line/ostracon/rpc/grpc;coregrpc";
     4  
     5  import "ostracon/abci/types.proto";
     6  import "tendermint/abci/types.proto";
     7  
     8  //----------------------------------------
     9  // Request types
    10  
    11  message RequestPing {}
    12  
    13  message RequestBroadcastTx {
    14    bytes tx = 1;
    15  }
    16  
    17  //----------------------------------------
    18  // Response types
    19  
    20  message ResponsePing {}
    21  
    22  message ResponseBroadcastTx {
    23    ostracon.abci.ResponseCheckTx     check_tx   = 1;
    24    tendermint.abci.ResponseDeliverTx deliver_tx = 2;
    25  }
    26  
    27  //----------------------------------------
    28  // Service Definition
    29  
    30  service BroadcastAPI {
    31    rpc Ping(RequestPing) returns (ResponsePing);
    32    rpc BroadcastTx(RequestBroadcastTx) returns (ResponseBroadcastTx);
    33  }