lnd.xprv/lnrpc/rpc.proto
2016-01-14 23:55:45 -08:00

44 lines
832 B
Protocol Buffer

syntax = "proto3";
package lnrpc;
service Lightning {
rpc SendMany(SendManyRequest) returns (SendManyResponse);
rpc NewAddress(NewAddressRequest) returns (NewAddressResponse);
rpc TCPListen(TCPListenRequest) returns (TCPListenResponse);
rpc LNConnect(LNConnectRequest) returns (LnConnectResponse);
rpc LNChat(LnChatRequest) returns (LnChatResponse);
}
message SendManyRequest {
map<string, int64> AddrToAmount = 1;
}
message SendManyResponse {
string txid = 1;
}
message NewAddressRequest {}
message NewAddressResponse {
string address = 1;
}
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{}