Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/master' into feature/add_db_api
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeNinjaEvan committed Apr 16, 2018
2 parents a5e544c + 246cf61 commit 13d4b62
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions api/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,29 @@ service WalletSolidity {

}
};

// 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 {

Expand Down

0 comments on commit 13d4b62

Please sign in to comment.