rpcserver: add LookupHtlc call

This commit is contained in:
Joost Jager committed 2022-10-27 16:43:09 +02:00
1 parent 511fb00777
commit 3a89a84744
11 files changed
+4637 -4100

No files matched your search

+49
View File
@@ -1593,6 +1593,44 @@
]
}
},
"/v1/htlc/{chan_id}/{htlc_index}": {
"get": {
"operationId": "Lightning_LookupHtlc",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/lnrpcLookupHtlcResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "chan_id",
"in": "path",
"required": true,
"type": "string",
"format": "uint64"
},
{
"name": "htlc_index",
"in": "path",
"required": true,
"type": "string",
"format": "uint64"
}
],
"tags": [
"Lightning"
]
}
},
"/v1/invoice/{r_hash_str}": {
"get": {
"summary": "lncli: `lookupinvoice`\nLookupInvoice attempts to look up an invoice according to its payment hash.\nThe passed payment hash *must* be exactly 32 bytes, if not, an error is\nreturned.",
@@ -5351,6 +5389,17 @@
}
}
},
"lnrpcLookupHtlcResponse": {
"type": "object",
"properties": {
"settled": {
"type": "boolean"
},
"offchain": {
"type": "boolean"
}
}
},
"lnrpcMPPRecord": {
"type": "object",
"properties": {