lnd.xprv/lnrpc/rpc.proto

45 lines
849 B
Protocol Buffer
Raw Normal View History

2015-12-30 23:19:09 +03:00
syntax = "proto3";
package lnrpc;
service Lightning {
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 06:02:24 +03:00
message TCPListenRequest {
string hostport = 1;
}
message TCPListenResponse{}
2015-12-31 06:02:24 +03:00
message LNConnectRequest {
string idAtHost = 1;
}
2015-12-31 06:02:24 +03:00
message LnConnectResponse {
bytes lnID = 1;
}
2015-12-31 06:02:24 +03:00
message LnChatRequest {
bytes destID = 1;
string msg = 2;
}
message LnChatResponse{}