2015-12-30 23:19:09 +03:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package lnrpc;
|
|
|
|
|
|
|
|
service Lightning {
|
2015-12-31 05:58:15 +03:00
|
|
|
rpc SendMany(SendManyRequest) returns (SendManyResponse);
|
2015-12-30 23:19:09 +03:00
|
|
|
rpc NewAddress(NewAddressRequest) returns (NewAddressResponse);
|
2015-12-31 06:02:24 +03:00
|
|
|
|
|
|
|
rpc TCPListen(TCPListenRequest) returns (TCPListenResponse);
|
|
|
|
rpc LNConnect(LNConnectRequest) returns (LnConnectResponse);
|
|
|
|
rpc LNChat(LnChatRequest) returns (LnChatResponse);
|
2015-12-30 23:19:09 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
message SendManyRequest {
|
|
|
|
map<string, int64> AddrToAmount = 1;
|
|
|
|
}
|
|
|
|
message SendManyResponse {
|
|
|
|
string txid = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
message NewAddressRequest {}
|
|
|
|
message NewAddressResponse {
|
|
|
|
string address = 1;
|
|
|
|
}
|
2015-12-31 05:58:15 +03:00
|
|
|
|
2015-12-31 06:02:24 +03:00
|
|
|
message TCPListenRequest {
|
2015-12-31 05:58:15 +03:00
|
|
|
string hostport = 1;
|
|
|
|
}
|
|
|
|
message TCPListenResponse{}
|
|
|
|
|
2015-12-31 06:02:24 +03:00
|
|
|
message LNConnectRequest {
|
2015-12-31 05:58:15 +03:00
|
|
|
string idAtHost = 1;
|
|
|
|
}
|
2015-12-31 06:02:24 +03:00
|
|
|
message LnConnectResponse {
|
2015-12-31 05:58:15 +03:00
|
|
|
bytes lnID = 1;
|
|
|
|
}
|
|
|
|
|
2015-12-31 06:02:24 +03:00
|
|
|
message LnChatRequest {
|
2015-12-31 05:58:15 +03:00
|
|
|
bytes destID = 1;
|
|
|
|
string msg = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message LnChatResponse{}
|