-
Notifications
You must be signed in to change notification settings - Fork 1
/
transactions_api.proto
55 lines (45 loc) · 1.33 KB
/
transactions_api.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
syntax = "proto3";
package waves.node.grpc;
option java_package = "com.wavesplatform.api.grpc";
option csharp_namespace = "Waves.Node.Grpc";
import "recipient.proto";
import "transaction.proto";
service TransactionsApi {
rpc GetTransactions (TransactionsRequest) returns (stream TransactionResponse);
rpc GetStateChanges (TransactionsRequest) returns (stream InvokeScriptResult);
rpc GetStatuses (TransactionsByIdRequest) returns (stream TransactionStatus);
rpc GetUnconfirmed (TransactionsRequest) returns (stream TransactionResponse);
rpc Sign (SignRequest) returns (SignedTransaction);
rpc Broadcast (SignedTransaction) returns (SignedTransaction);
}
message TransactionStatus {
enum Status {
NOT_EXISTS = 0;
UNCONFIRMED = 1;
CONFIRMED = 2;
}
bytes id = 1;
Status status = 2;
int64 height = 3;
}
message TransactionResponse {
bytes id = 1;
int64 height = 2;
SignedTransaction transaction = 3;
}
message TransactionsRequest {
bytes sender = 1;
Recipient recipient = 2;
repeated bytes transaction_ids = 3;
}
message TransactionsByIdRequest {
repeated bytes transaction_ids = 3;
}
message CalculateFeeResponse {
bytes asset_id = 1;
uint64 amount = 2;
}
message SignRequest {
Transaction transaction = 1;
bytes signer_public_key = 2;
}