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

Commit

Permalink
add get Transaction api.
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeNinjaEvan committed Apr 13, 2018
1 parent 8a9ef78 commit 87c23fb
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion api/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ service Wallet {
}
rpc GetAssetIssueList (EmptyMessage) returns (AssetIssueList) {

}
rpc GetAssetIssueListBy (EmptyMessage) returns (AssetIssueList) {

}
rpc GetAssetIssueByAccount (Account) returns (AssetIssueList) {

Expand All @@ -80,10 +83,23 @@ service Wallet {
rpc GetBlockByNum (NumberMessage) returns (Block) {

}
rpc GetDynamicProperties (EmptyMessage) returns (DynamicProperties) {

}
//get transaction
rpc TotalTransaction (EmptyMessage) returns (NumberMessage) {

}
rpc GetDynamicProperties (EmptyMessage) returns (DynamicProperties) {
rpc getTransactionById (BytesMessage) returns (Transaction) {

}
rpc getTransactionsByTimestamp (TimeMessage) returns (TransactionList) {

}
rpc getTransactionsFromThis (Account) returns (TransactionList) {

}
rpc getTransactionsToThis (Account) returns (NumberMessage) {

}
};
Expand Down Expand Up @@ -113,6 +129,12 @@ message WitnessList {
message AssetIssueList {
repeated AssetIssueContract assetIssue = 1;
}
message BlockList {
repeated Block block = 1;
}
message TransactionList {
repeated Transaction transaction = 1;
}

// Gossip node list
message NodeList {
Expand All @@ -137,4 +159,8 @@ message NumberMessage {
}
message BytesMessage {
bytes value = 1;
}
message TimeMessage {
int64 beginInMilliseconds = 1;
int64 endInMilliseconds = 2;
}

0 comments on commit 87c23fb

Please sign in to comment.