From 2f7ae0b8cc086d90bbbcb4bbb51a6555bc5513fc Mon Sep 17 00:00:00 2001 From: Heng Zhang Date: Mon, 16 Apr 2018 16:41:18 +0800 Subject: [PATCH] feature:add Datebase api Service. --- api/api.proto | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/api/api.proto b/api/api.proto index d4650006d07..54096b1343d 100644 --- a/api/api.proto +++ b/api/api.proto @@ -148,11 +148,29 @@ service Wallet { }; } }; + // the api of tron's db service Database { + // for tapos + rpc getBlockReference (EmptyMessage) returns (BlockReference) { + + } + rpc GetDynamicProperties (EmptyMessage) returns (DynamicProperties) { + + } + rpc GetNowBlock (EmptyMessage) returns (Block) { + } + rpc GetBlockByNum (NumberMessage) returns (Block) { + + } }; +message BlockReference { + int64 block_num = 1; + bytes block_hash = 2; +} + // the api of tron's network such as node list. service Network {