forked from irinazheltisheva/powergate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrpc.proto
More file actions
45 lines (34 loc) · 813 Bytes
/
rpc.proto
File metadata and controls
45 lines (34 loc) · 813 Bytes
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
syntax = "proto3";
package wallet.rpc;
option go_package = "github.com/textileio/powergate/wallet/rpc";
message NewAddressRequest {
string type = 1;
}
message NewAddressResponse {
string address = 1;
}
message ListRequest {
string type = 1;
}
message ListResponse {
repeated string addresses = 1;
}
message BalanceRequest {
string address = 1;
}
message BalanceResponse {
uint64 balance = 1;
}
message SendFilRequest {
string from = 1;
string to = 2;
int64 amount = 3;
}
message SendFilResponse {
}
service RPCService {
rpc NewAddress(NewAddressRequest) returns (NewAddressResponse) {}
rpc List(ListRequest) returns (ListResponse) {}
rpc Balance(BalanceRequest) returns (BalanceResponse) {}
rpc SendFil(SendFilRequest) returns (SendFilResponse) {}
}