lnrpc: add blinded payment to QueryRoutes request
This commit is contained in:
1 parent
63b4ac8057
commit
cae22dc862
4 files changed
+2849
-2189
No files matched your search
@@ -1311,7 +1311,7 @@
|
||||
},
|
||||
{
|
||||
"name": "final_cltv_delta",
|
||||
"description": "An optional CLTV delta from the current height that should be used for the\ntimelock of the final hop. Note that unlike SendPayment, QueryRoutes does\nnot add any additional block padding on top of final_ctlv_delta. This\npadding of a few blocks needs to be added manually or otherwise failures may\nhappen when a block comes in while the payment is in flight.",
|
||||
"description": "An optional CLTV delta from the current height that should be used for the\ntimelock of the final hop. Note that unlike SendPayment, QueryRoutes does\nnot add any additional block padding on top of final_ctlv_delta. This\npadding of a few blocks needs to be added manually or otherwise failures may\nhappen when a block comes in while the payment is in flight.\n\nNote: must not be set if making a payment to a blinded path (delta is\nset by the aggregate parameters provided by blinded_payment_paths)",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"type": "integer",
|
||||
@@ -1393,7 +1393,7 @@
|
||||
},
|
||||
{
|
||||
"name": "dest_features",
|
||||
"description": "Features assumed to be supported by the final node. All transitive feature\ndependencies must also be set properly. For a given feature bit pair, either\noptional or remote may be set, but not both. If this field is nil or empty,\nthe router will try to load destination features from the graph as a\nfallback.",
|
||||
"description": "Features assumed to be supported by the final node. All transitive feature\ndependencies must also be set properly. For a given feature bit pair, either\noptional or remote may be set, but not both. If this field is nil or empty,\nthe router will try to load destination features from the graph as a\nfallback.\n\nNote: must not be set if making a payment to a blinded route (features\nare provided in blinded_payment_paths).",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"type": "array",
|
||||
@@ -1491,7 +1491,7 @@
|
||||
"final_cltv_delta": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"description": "An optional CLTV delta from the current height that should be used for the\ntimelock of the final hop. Note that unlike SendPayment, QueryRoutes does\nnot add any additional block padding on top of final_ctlv_delta. This\npadding of a few blocks needs to be added manually or otherwise failures may\nhappen when a block comes in while the payment is in flight."
|
||||
"description": "An optional CLTV delta from the current height that should be used for the\ntimelock of the final hop. Note that unlike SendPayment, QueryRoutes does\nnot add any additional block padding on top of final_ctlv_delta. This\npadding of a few blocks needs to be added manually or otherwise failures may\nhappen when a block comes in while the payment is in flight.\n\nNote: must not be set if making a payment to a blinded path (delta is\nset by the aggregate parameters provided by blinded_payment_paths)"
|
||||
},
|
||||
"fee_limit": {
|
||||
"$ref": "#/definitions/lnrpcFeeLimit",
|
||||
@@ -1557,12 +1557,19 @@
|
||||
},
|
||||
"description": "Optional route hints to reach the destination through private channels."
|
||||
},
|
||||
"blinded_payment_paths": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/lnrpcBlindedPaymentPath"
|
||||
},
|
||||
"description": "An optional blinded path(s) to reach the destination. Note that the\nintroduction node must be provided as the first hop in the route."
|
||||
},
|
||||
"dest_features": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/lnrpcFeatureBit"
|
||||
},
|
||||
"description": "Features assumed to be supported by the final node. All transitive feature\ndependencies must also be set properly. For a given feature bit pair, either\noptional or remote may be set, but not both. If this field is nil or empty,\nthe router will try to load destination features from the graph as a\nfallback."
|
||||
"description": "Features assumed to be supported by the final node. All transitive feature\ndependencies must also be set properly. For a given feature bit pair, either\noptional or remote may be set, but not both. If this field is nil or empty,\nthe router will try to load destination features from the graph as a\nfallback.\n\nNote: must not be set if making a payment to a blinded route (features\nare provided in blinded_payment_paths)."
|
||||
},
|
||||
"time_pref": {
|
||||
"type": "number",
|
||||
@@ -3415,6 +3422,84 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"lnrpcBlindedHop": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"blinded_node": {
|
||||
"type": "string",
|
||||
"format": "byte",
|
||||
"description": "The blinded public key of the node."
|
||||
},
|
||||
"encrypted_data": {
|
||||
"type": "string",
|
||||
"format": "byte",
|
||||
"description": "An encrypted blob of data provided to the blinded node."
|
||||
}
|
||||
}
|
||||
},
|
||||
"lnrpcBlindedPath": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"introduction_node": {
|
||||
"type": "string",
|
||||
"format": "byte",
|
||||
"description": "The unblinded pubkey of the introduction node for the route."
|
||||
},
|
||||
"blinding_point": {
|
||||
"type": "string",
|
||||
"format": "byte",
|
||||
"description": "The ephemeral pubkey used by nodes in the blinded route."
|
||||
},
|
||||
"blinded_hops": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/lnrpcBlindedHop"
|
||||
},
|
||||
"description": "A set of blinded node keys and data blobs for the blinded portion of the\nroute. Note that the first hop is expected to be the introduction node,\nso the route is always expected to have at least one hop."
|
||||
}
|
||||
}
|
||||
},
|
||||
"lnrpcBlindedPaymentPath": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"blinded_path": {
|
||||
"$ref": "#/definitions/lnrpcBlindedPath",
|
||||
"description": "The blinded path to send the payment to."
|
||||
},
|
||||
"base_fee_msat": {
|
||||
"type": "string",
|
||||
"format": "uint64",
|
||||
"description": "The base fee for the blinded path provided, expressed in msat."
|
||||
},
|
||||
"proportional_fee_msat": {
|
||||
"type": "string",
|
||||
"format": "uint64",
|
||||
"description": "The proportional fee for the blinded path provided, expressed in msat."
|
||||
},
|
||||
"total_cltv_delta": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "The total CLTV delta for the blinded path provided, including the\nfinal CLTV delta for the receiving node."
|
||||
},
|
||||
"htlc_min_msat": {
|
||||
"type": "string",
|
||||
"format": "uint64",
|
||||
"description": "The minimum hltc size that may be sent over the blinded path, expressed\nin msat."
|
||||
},
|
||||
"htlc_max_msat": {
|
||||
"type": "string",
|
||||
"format": "uint64",
|
||||
"description": "The maximum htlc size that may be sent over the blinded path, expressed\nin msat."
|
||||
},
|
||||
"features": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/lnrpcFeatureBit"
|
||||
},
|
||||
"description": "The feature bits for the route."
|
||||
}
|
||||
}
|
||||
},
|
||||
"lnrpcChain": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in new issue
Block a user