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.

36 lines
710 B

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