2021-02-09 15:12:21 +01:00
{
"swagger" : "2.0" ,
"info" : {
"title" : "stateservice.proto" ,
"version" : "version not set"
} ,
2021-07-27 12:59:59 +02:00
"tags" : [
{
"name" : "State"
}
] ,
2021-02-09 15:12:21 +01:00
"consumes" : [
"application/json"
] ,
"produces" : [
"application/json"
] ,
"paths" : {
2021-03-30 14:44:03 +02:00
"/v1/state" : {
"get" : {
"summary" : "GetState returns the current wallet state without streaming further\nchanges." ,
2021-07-27 12:59:59 +02:00
"operationId" : "State_GetState" ,
2021-03-30 14:44:03 +02:00
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
"$ref" : "#/definitions/lnrpcGetStateResponse"
}
} ,
"default" : {
2021-07-27 12:59:59 +02:00
"description" : "An unexpected error response." ,
2021-03-30 14:44:03 +02:00
"schema" : {
2021-07-27 12:59:59 +02:00
"$ref" : "#/definitions/rpcStatus"
2021-03-30 14:44:03 +02:00
}
}
} ,
"tags" : [
"State"
]
}
} ,
2021-02-09 15:12:21 +01:00
"/v1/state/subscribe" : {
"get" : {
"summary" : "SubscribeState subscribes to the state of the wallet. The current wallet\nstate will always be delivered immediately." ,
2021-07-27 12:59:59 +02:00
"operationId" : "State_SubscribeState" ,
2021-02-09 15:12:21 +01:00
"responses" : {
"200" : {
"description" : "A successful response.(streaming responses)" ,
"schema" : {
"type" : "object" ,
"properties" : {
"result" : {
"$ref" : "#/definitions/lnrpcSubscribeStateResponse"
} ,
"error" : {
2021-07-27 12:59:59 +02:00
"$ref" : "#/definitions/rpcStatus"
2021-02-09 15:12:21 +01:00
}
} ,
"title" : "Stream result of lnrpcSubscribeStateResponse"
}
} ,
"default" : {
2021-07-27 12:59:59 +02:00
"description" : "An unexpected error response." ,
2021-02-09 15:12:21 +01:00
"schema" : {
2021-07-27 12:59:59 +02:00
"$ref" : "#/definitions/rpcStatus"
2021-02-09 15:12:21 +01:00
}
}
} ,
"tags" : [
"State"
]
}
}
} ,
"definitions" : {
2021-03-30 14:44:03 +02:00
"lnrpcGetStateResponse" : {
"type" : "object" ,
"properties" : {
2021-05-10 00:50:10 +02:00
"state" : {
2021-03-30 14:44:03 +02:00
"$ref" : "#/definitions/lnrpcWalletState"
}
}
} ,
2021-02-09 15:12:21 +01:00
"lnrpcSubscribeStateResponse" : {
"type" : "object" ,
"properties" : {
2021-04-05 15:19:22 +02:00
"state" : {
2021-02-09 15:12:21 +01:00
"$ref" : "#/definitions/lnrpcWalletState"
}
}
} ,
"lnrpcWalletState" : {
"type" : "string" ,
"enum" : [
"NON_EXISTING" ,
"LOCKED" ,
"UNLOCKED" ,
2021-03-19 15:53:06 +01:00
"RPC_ACTIVE" ,
2021-09-11 19:26:43 +02:00
"SERVER_ACTIVE" ,
2021-03-19 15:53:06 +01:00
"WAITING_TO_START"
2021-02-09 15:12:21 +01:00
] ,
2021-09-11 19:26:43 +02:00
"default" : "NON_EXISTING" ,
2022-09-14 20:26:47 +02:00
"description" : " - NON_EXISTING: NON_EXISTING means that the wallet has not yet been initialized.\n - LOCKED: LOCKED means that the wallet is locked and requires a password to unlock.\n - UNLOCKED: UNLOCKED means that the wallet was unlocked successfully, but RPC server\nisn't ready.\n - RPC_ACTIVE: RPC_ACTIVE means that the lnd server is active but not fully ready for\ncalls.\n - SERVER_ACTIVE: SERVER_ACTIVE means that the lnd server is ready to accept calls.\n - WAITING_TO_START: WAITING_TO_START means that node is waiting to become the leader in a\ncluster and is not started yet."
2021-02-09 15:12:21 +01:00
} ,
"protobufAny" : {
"type" : "object" ,
"properties" : {
"type_url" : {
"type" : "string"
} ,
"value" : {
"type" : "string" ,
"format" : "byte"
}
}
} ,
2021-07-27 12:59:59 +02:00
"rpcStatus" : {
2021-02-09 15:12:21 +01:00
"type" : "object" ,
"properties" : {
"code" : {
"type" : "integer" ,
"format" : "int32"
} ,
"message" : {
"type" : "string"
} ,
"details" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/protobufAny"
}
}
}
}
}
}