lnrpc: add ClosedChannels call
This commit is contained in:
1 parent
cc1d833ee4
commit
52392d836c
4 files changed
+939
-440
No files matched your search
@@ -148,6 +148,60 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/v1/channels/closed": {
|
||||
"get": {
|
||||
"summary": "* lncli: `closedchannels`\nClosedChannels returns a description of all the closed channels that \nthis node was a participant in.",
|
||||
"operationId": "ClosedChannels",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/lnrpcClosedChannelsResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"name": "cooperative",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"type": "boolean",
|
||||
"format": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "local_force",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"type": "boolean",
|
||||
"format": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "remote_force",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"type": "boolean",
|
||||
"format": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "breach",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"type": "boolean",
|
||||
"format": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "funding_canceled",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"type": "boolean",
|
||||
"format": "boolean"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"Lightning"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/v1/channels/pending": {
|
||||
"get": {
|
||||
"summary": "* lncli: `pendingchannels`\nPendingChannels returns a list of all the channels that are currently\nconsidered \"pending\". A channel is pending if it has finished the funding\nworkflow and is waiting for confirmations for the funding txn, or is in the\nprocess of closure, either initiated cooperatively or non-cooperatively.",
|
||||
@@ -867,6 +921,17 @@
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
"ChannelCloseSummaryClosureType": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"COOPERATIVE_CLOSE",
|
||||
"LOCAL_FORCE_CLOSE",
|
||||
"REMOTE_FORCE_CLOSE",
|
||||
"BREACH_CLOSE",
|
||||
"FUNDING_CANCELED"
|
||||
],
|
||||
"default": "COOPERATIVE_CLOSE"
|
||||
},
|
||||
"PendingChannelsResponseClosedChannel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -1121,6 +1186,56 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"lnrpcChannelCloseSummary": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"channel_point": {
|
||||
"type": "string",
|
||||
"description": "/ The outpoint (txid:index) of the funding transaction."
|
||||
},
|
||||
"chan_id": {
|
||||
"type": "string",
|
||||
"format": "uint64",
|
||||
"description": "/ The unique channel ID for the channel."
|
||||
},
|
||||
"chain_hash": {
|
||||
"type": "string",
|
||||
"description": "/ The hash of the genesis block that this channel resides within."
|
||||
},
|
||||
"closing_tx_hash": {
|
||||
"type": "string",
|
||||
"description": "/ The txid of the transaction which ultimately closed this channel."
|
||||
},
|
||||
"remote_pubkey": {
|
||||
"type": "string",
|
||||
"description": "/ Public key of the remote peer that we formerly had a channel with."
|
||||
},
|
||||
"capacity": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"description": "/ Total capacity of the channel."
|
||||
},
|
||||
"close_height": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "/ Height at which the funding transaction was spent."
|
||||
},
|
||||
"settled_balance": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"title": "/ Settled balance at the time of channel closure"
|
||||
},
|
||||
"time_locked_balance": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"title": "/ The sum of all the time-locked outputs at the time of channel closure"
|
||||
},
|
||||
"close_type": {
|
||||
"$ref": "#/definitions/ChannelCloseSummaryClosureType",
|
||||
"description": "/ Details on how the channel was closed."
|
||||
}
|
||||
}
|
||||
},
|
||||
"lnrpcChannelCloseUpdate": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -1300,6 +1415,17 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"lnrpcClosedChannelsResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"channels": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/lnrpcChannelCloseSummary"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"lnrpcConfirmationUpdate": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in new issue
Block a user