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