2019-06-21 02:53:09 +03:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package watchtowerrpc;
|
|
|
|
|
|
|
|
option go_package = "github.com/lightningnetwork/lnd/lnrpc/watchtowerrpc";
|
|
|
|
|
2020-05-06 17:41:47 +03:00
|
|
|
// Watchtower is a service that grants access to the watchtower server
|
|
|
|
// functionality of the daemon.
|
2019-06-21 02:53:09 +03:00
|
|
|
service Watchtower {
|
2020-05-06 17:51:14 +03:00
|
|
|
/* lncli: tower info
|
2020-02-11 16:05:42 +03:00
|
|
|
GetInfo returns general information concerning the companion watchtower
|
2020-03-03 18:30:15 +03:00
|
|
|
including its public key and URIs where the server is currently
|
2020-02-11 16:05:42 +03:00
|
|
|
listening for clients.
|
|
|
|
*/
|
|
|
|
rpc GetInfo (GetInfoRequest) returns (GetInfoResponse);
|
2019-06-21 02:53:09 +03:00
|
|
|
}
|
|
|
|
|
2020-02-11 16:05:42 +03:00
|
|
|
message GetInfoRequest {
|
2019-06-21 02:53:09 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
message GetInfoResponse {
|
2020-05-06 17:51:14 +03:00
|
|
|
// The public key of the watchtower.
|
2020-02-11 16:05:42 +03:00
|
|
|
bytes pubkey = 1;
|
2019-06-21 02:53:09 +03:00
|
|
|
|
2020-05-06 17:51:14 +03:00
|
|
|
// The listening addresses of the watchtower.
|
2020-02-11 16:05:42 +03:00
|
|
|
repeated string listeners = 2;
|
2019-06-21 02:53:09 +03:00
|
|
|
|
2020-05-06 17:51:14 +03:00
|
|
|
// The URIs of the watchtower.
|
2020-02-11 16:05:42 +03:00
|
|
|
repeated string uris = 3;
|
2019-06-21 02:53:09 +03:00
|
|
|
}
|