2015-12-30 21:19:09 +01:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package lnrpc;
|
|
|
|
|
|
|
|
service Lightning {
|
2015-12-31 03:58:15 +01:00
|
|
|
rpc SendMany(SendManyRequest) returns (SendManyResponse);
|
2015-12-30 21:19:09 +01:00
|
|
|
rpc NewAddress(NewAddressRequest) returns (NewAddressResponse);
|
2015-12-31 04:02:24 +01:00
|
|
|
|
2016-01-17 04:03:47 +01:00
|
|
|
rpc ConnectPeer(ConnectPeerRequest) returns (ConnectPeerResponse);
|
2015-12-30 21:19:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
message SendManyRequest {
|
|
|
|
map<string, int64> AddrToAmount = 1;
|
|
|
|
}
|
2016-01-17 04:03:47 +01:00
|
|
|
|
2015-12-30 21:19:09 +01:00
|
|
|
message SendManyResponse {
|
|
|
|
string txid = 1;
|
|
|
|
}
|
|
|
|
|
2016-04-25 05:26:32 +02:00
|
|
|
message NewAddressRequest {
|
|
|
|
enum AddressType {
|
|
|
|
WITNESS_PUBKEY_HASH = 0;
|
|
|
|
NESTED_PUBKEY_HASH = 1;
|
|
|
|
PUBKEY_HASH = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
AddressType type = 1;
|
|
|
|
}
|
2015-12-30 21:19:09 +01:00
|
|
|
message NewAddressResponse {
|
|
|
|
string address = 1;
|
|
|
|
}
|
2015-12-31 03:58:15 +01:00
|
|
|
|
2016-01-17 04:03:47 +01:00
|
|
|
message ConnectPeerRequest {
|
2015-12-31 03:58:15 +01:00
|
|
|
string idAtHost = 1;
|
|
|
|
}
|
|
|
|
|
2016-01-17 04:03:47 +01:00
|
|
|
message ConnectPeerResponse {
|
|
|
|
bytes lnID = 1;
|
2015-12-31 03:58:15 +01:00
|
|
|
}
|