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

Commit

Permalink
Merge pull request #24 from tronprotocol/add_database_api
Browse files Browse the repository at this point in the history
feature:add Database api Service.
  • Loading branch information
huzhenyuan committed Apr 16, 2018
2 parents 6ced950 + 2f7ae0b commit 246cf61
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 @@ -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 {

Expand Down

0 comments on commit 246cf61

Please sign in to comment.