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 grpc-ecosystem#68 from tronprotocol/feature/add_ge…
Browse files Browse the repository at this point in the history
…ttransactioninfobyid_api

add transactioninfobyid api
  • Loading branch information
nanfengpo authored Jun 22, 2018
2 parents c8706f0 + 382864b commit d7bf54e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
14 changes: 12 additions & 2 deletions api/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -401,10 +401,20 @@ service WalletSolidity {
}
rpc GetTransactionById (BytesMessage) returns (Transaction) {
option (google.api.http) = {
post: "/wallet/gettransactionbyid"
post: "/walletsolidity/gettransactionbyid"
body: "*"
additional_bindings {
get: "/wallet/gettransactionbyid"
get: "/walletsolidity/gettransactionbyid"
}
};
}

rpc GetTransactionInfoById (BytesMessage) returns (TransactionInfo) {
option (google.api.http) = {
post: "/walletsolidity/gettransactioninfobyid"
body: "*"
additional_bindings {
get: "/walletsolidity/gettransactioninfobyid"
}
};
}
Expand Down
7 changes: 7 additions & 0 deletions core/Tron.proto
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,13 @@ message Transaction {
repeated Result ret = 5;
}

message TransactionInfo {
bytes id = 1;
int64 fee = 2;
int64 blockNumber = 3;
int64 blockTimeStamp = 4;
}

message Transactions {
repeated Transaction transactions = 1;
}
Expand Down

0 comments on commit d7bf54e

Please sign in to comment.