New RPC call

This commit is contained in:
Aditya Kulkarni
2019-09-05 11:48:32 -07:00
parent 1e40cea877
commit 0c85de50ad
6 changed files with 349 additions and 80 deletions

View File

@@ -40,10 +40,13 @@ message SendResponse {
// Empty placeholder. Someday we may want to specify e.g. a particular chain fork.
message ChainSpec {}
message Empty {}
service CompactTxStreamer {
rpc GetLatestBlock(ChainSpec) returns (BlockID) {}
rpc GetBlock(BlockID) returns (CompactBlock) {}
rpc GetBlockRange(BlockRange) returns (stream CompactBlock) {}
rpc GetTransaction(TxFilter) returns (RawTransaction) {}
rpc SendTransaction(RawTransaction) returns (SendResponse) {}
rpc GetLightdInfo(Empty) returns (SendResponse) {}
}