2020-05-06 16:43:56 +02:00
{
"swagger" : "2.0" ,
"info" : {
"title" : "watchtowerrpc/watchtower.proto" ,
"version" : "version not set"
} ,
2021-07-27 12:59:59 +02:00
"tags" : [
{
"name" : "Watchtower"
}
] ,
2020-05-06 16:43:56 +02:00
"consumes" : [
"application/json"
] ,
"produces" : [
"application/json"
] ,
2020-05-28 13:07:31 +02:00
"paths" : {
"/v2/watchtower/server" : {
"get" : {
"summary" : "lncli: tower info\nGetInfo returns general information concerning the companion watchtower\nincluding its public key and URIs where the server is currently\nlistening for clients." ,
2021-07-27 12:59:59 +02:00
"operationId" : "Watchtower_GetInfo" ,
2020-05-28 13:07:31 +02:00
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
"$ref" : "#/definitions/watchtowerrpcGetInfoResponse"
}
} ,
"default" : {
2021-07-27 12:59:59 +02:00
"description" : "An unexpected error response." ,
2020-05-28 13:07:31 +02:00
"schema" : {
2021-07-27 12:59:59 +02:00
"$ref" : "#/definitions/rpcStatus"
2020-05-28 13:07:31 +02:00
}
}
} ,
"tags" : [
"Watchtower"
]
}
}
} ,
2020-05-06 16:43:56 +02:00
"definitions" : {
2020-05-28 13:07:31 +02:00
"protobufAny" : {
"type" : "object" ,
"properties" : {
"type_url" : {
"type" : "string"
} ,
"value" : {
"type" : "string" ,
"format" : "byte"
}
}
} ,
2021-07-27 12:59:59 +02:00
"rpcStatus" : {
2020-05-28 13:07:31 +02:00
"type" : "object" ,
"properties" : {
"code" : {
"type" : "integer" ,
"format" : "int32"
} ,
"message" : {
"type" : "string"
} ,
"details" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/protobufAny"
}
}
}
} ,
2020-05-06 16:43:56 +02:00
"watchtowerrpcGetInfoResponse" : {
"type" : "object" ,
"properties" : {
"pubkey" : {
"type" : "string" ,
"format" : "byte" ,
"description" : "The public key of the watchtower."
} ,
"listeners" : {
"type" : "array" ,
"items" : {
"type" : "string"
} ,
"description" : "The listening addresses of the watchtower."
} ,
"uris" : {
"type" : "array" ,
"items" : {
"type" : "string"
} ,
"description" : "The URIs of the watchtower."
}
}
}
}
}