You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.0 KiB

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