Skip to content

Commit

Permalink
feat: block by hash
Browse files Browse the repository at this point in the history
  • Loading branch information
Eoous committed Jul 16, 2024
1 parent 4d17212 commit 7a42ed2
Show file tree
Hide file tree
Showing 5 changed files with 575 additions and 48 deletions.
296 changes: 272 additions & 24 deletions proto/tendermint/rpc/grpc/types.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions proto/tendermint/rpc/grpc/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package tendermint.rpc.grpc;
option go_package = "github.com/cometbft/cometbft/rpc/grpc;coregrpc";

import "tendermint/abci/types.proto";
import "tendermint/types/block.proto";

//----------------------------------------
// Request types
Expand All @@ -13,6 +14,10 @@ message RequestBroadcastTx {
bytes tx = 1;
}

message RequestBlockByHash {
bytes hash = 1;
}

//----------------------------------------
// Response types

Expand All @@ -30,3 +35,7 @@ service BroadcastAPI {
rpc Ping(RequestPing) returns (ResponsePing);
rpc BroadcastTx(RequestBroadcastTx) returns (ResponseBroadcastTx);
}

service BlockAPI {
rpc BlockByHash(RequestBlockByHash) returns (tendermint.types.Block);
}
Loading

0 comments on commit 7a42ed2

Please sign in to comment.