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