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