lnrpc: Add Outpoint field in SendCoinsRequest

Signed-off-by: Ononiwu Maureen <59079323+Chinwendu20@users.noreply.github.com>
This commit is contained in:
Ononiwu Maureen authored and yyforyongyu committed 2024-08-07 20:42:27 +08:00
1 parent 75ec6da177
commit 468ca87499
3 files changed
+3019 -2998

No files matched your search

+3006 -2994
View File
File diff suppressed because it is too large. Load diff
+5 -3
View File
@@ -1190,9 +1190,8 @@ message SendCoinsRequest {
int64 sat_per_byte = 5 [deprecated = true]; int64 sat_per_byte = 5 [deprecated = true];
/* /*
If set, then the amount field will be ignored, and lnd will attempt to If set, the amount field should be unset. It indicates lnd will send all
send all the coins under control of the internal wallet to the specified wallet coins or all selected coins to the specified address.
address.
*/ */
bool send_all = 6; bool send_all = 6;
@@ -1208,6 +1207,9 @@ message SendCoinsRequest {
// The strategy to use for selecting coins. // The strategy to use for selecting coins.
CoinSelectionStrategy coin_selection_strategy = 10; CoinSelectionStrategy coin_selection_strategy = 10;
// A list of selected outpoints as inputs for the transaction.
repeated OutPoint outpoints = 11;
} }
message SendCoinsResponse { message SendCoinsResponse {
// The transaction ID of the transaction // The transaction ID of the transaction
+8 -1
View File
@@ -6965,7 +6965,7 @@
}, },
"send_all": { "send_all": {
"type": "boolean", "type": "boolean",
"description": "If set, then the amount field will be ignored, and lnd will attempt to\nsend all the coins under control of the internal wallet to the specified\naddress." "description": "If set, the amount field should be unset. It indicates lnd will send all\nwallet coins or all selected coins to the specified address."
}, },
"label": { "label": {
"type": "string", "type": "string",
@@ -6983,6 +6983,13 @@
"coin_selection_strategy": { "coin_selection_strategy": {
"$ref": "#/definitions/lnrpcCoinSelectionStrategy", "$ref": "#/definitions/lnrpcCoinSelectionStrategy",
"description": "The strategy to use for selecting coins." "description": "The strategy to use for selecting coins."
},
"outpoints": {
"type": "array",
"items": {
"$ref": "#/definitions/lnrpcOutPoint"
},
"description": "A list of selected outpoints as inputs for the transaction."
} }
} }
}, },