lnd.xprv/lnrpc/rpc.proto

40 lines
717 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 ConnectPeer(ConnectPeerRequest) returns (ConnectPeerResponse);
2015-12-30 23:19:09 +03:00
}
message SendManyRequest {
map<string, int64> AddrToAmount = 1;
}
2015-12-30 23:19:09 +03:00
message SendManyResponse {
string txid = 1;
}
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;
}
message ConnectPeerRequest {
string idAtHost = 1;
}
message ConnectPeerResponse {
bytes lnID = 1;
}