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.

32 lines
735 B

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