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

45 lines
849 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 LnConnectResponse {
bytes lnID = 1;
}
message LnChatRequest {
bytes destID = 1;
string msg = 2;
}
message LnChatResponse{}