lightning 10.22.1 → 10.22.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/grpc/protos/invoices.proto +10 -4
- package/grpc/protos/lightning.proto +126 -1
- package/grpc/protos/router.proto +95 -0
- package/grpc/protos/walletkit.proto +64 -2
- package/lnd_methods/info/constants.json +1 -0
- package/lnd_methods/offchain/pay_via_routes.d.ts +4 -0
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -204,10 +204,10 @@ message LookupInvoiceMsg {
|
|
|
204
204
|
|
|
205
205
|
// CircuitKey is a unique identifier for an HTLC.
|
|
206
206
|
message CircuitKey {
|
|
207
|
-
|
|
207
|
+
// The id of the channel that the is part of this circuit.
|
|
208
208
|
uint64 chan_id = 1;
|
|
209
209
|
|
|
210
|
-
|
|
210
|
+
// The index of the incoming htlc in the incoming channel.
|
|
211
211
|
uint64 htlc_id = 2;
|
|
212
212
|
}
|
|
213
213
|
|
|
@@ -240,6 +240,12 @@ message HtlcModifyResponse {
|
|
|
240
240
|
// The modified amount in milli-satoshi that the exit HTLC is paying. This
|
|
241
241
|
// value can be different from the actual on-chain HTLC amount, in case the
|
|
242
242
|
// HTLC carries other valuable items, as can be the case with custom channel
|
|
243
|
-
// types.
|
|
244
|
-
uint64 amt_paid = 2;
|
|
243
|
+
// types.
|
|
244
|
+
optional uint64 amt_paid = 2;
|
|
245
|
+
|
|
246
|
+
// This flag indicates whether the HTLCs associated with the invoices should
|
|
247
|
+
// be cancelled. The interceptor client may set this field if some
|
|
248
|
+
// unexpected behavior is encountered. Setting this will ignore the amt_paid
|
|
249
|
+
// field.
|
|
250
|
+
bool cancel_set = 3;
|
|
245
251
|
}
|
|
@@ -643,6 +643,8 @@ message SendCustomMessageRequest {
|
|
|
643
643
|
}
|
|
644
644
|
|
|
645
645
|
message SendCustomMessageResponse {
|
|
646
|
+
// The status of the send operation.
|
|
647
|
+
string status = 1;
|
|
646
648
|
}
|
|
647
649
|
|
|
648
650
|
message Utxo {
|
|
@@ -755,11 +757,35 @@ message GetTransactionsRequest {
|
|
|
755
757
|
|
|
756
758
|
// An optional filter to only include transactions relevant to an account.
|
|
757
759
|
string account = 3;
|
|
760
|
+
|
|
761
|
+
/*
|
|
762
|
+
The index of a transaction that will be used in a query to determine which
|
|
763
|
+
transaction should be returned in the response.
|
|
764
|
+
*/
|
|
765
|
+
uint32 index_offset = 4;
|
|
766
|
+
|
|
767
|
+
/*
|
|
768
|
+
The maximal number of transactions returned in the response to this query.
|
|
769
|
+
This value should be set to 0 to return all transactions.
|
|
770
|
+
*/
|
|
771
|
+
uint32 max_transactions = 5;
|
|
758
772
|
}
|
|
759
773
|
|
|
760
774
|
message TransactionDetails {
|
|
761
775
|
// The list of transactions relevant to the wallet.
|
|
762
776
|
repeated Transaction transactions = 1;
|
|
777
|
+
|
|
778
|
+
/*
|
|
779
|
+
The index of the last item in the set of returned transactions. This can be
|
|
780
|
+
used to seek further, pagination style.
|
|
781
|
+
*/
|
|
782
|
+
uint64 last_index = 2;
|
|
783
|
+
|
|
784
|
+
/*
|
|
785
|
+
The index of the last item in the set of returned transactions. This can be
|
|
786
|
+
used to seek backwards, pagination style.
|
|
787
|
+
*/
|
|
788
|
+
uint64 first_index = 3;
|
|
763
789
|
}
|
|
764
790
|
|
|
765
791
|
message FeeLimit {
|
|
@@ -1317,6 +1343,8 @@ message ConnectPeerRequest {
|
|
|
1317
1343
|
uint64 timeout = 3;
|
|
1318
1344
|
}
|
|
1319
1345
|
message ConnectPeerResponse {
|
|
1346
|
+
// The status of the connect operation.
|
|
1347
|
+
string status = 1;
|
|
1320
1348
|
}
|
|
1321
1349
|
|
|
1322
1350
|
message DisconnectPeerRequest {
|
|
@@ -1324,6 +1352,8 @@ message DisconnectPeerRequest {
|
|
|
1324
1352
|
string pub_key = 1;
|
|
1325
1353
|
}
|
|
1326
1354
|
message DisconnectPeerResponse {
|
|
1355
|
+
// The status of the disconnect operation.
|
|
1356
|
+
string status = 1;
|
|
1327
1357
|
}
|
|
1328
1358
|
|
|
1329
1359
|
message HTLC {
|
|
@@ -1388,8 +1418,14 @@ enum CommitmentType {
|
|
|
1388
1418
|
A channel that uses musig2 for the funding output, and the new tapscript
|
|
1389
1419
|
features where relevant.
|
|
1390
1420
|
*/
|
|
1391
|
-
// TODO(roasbeef): need script enforce mirror type for the above as well?
|
|
1392
1421
|
SIMPLE_TAPROOT = 5;
|
|
1422
|
+
|
|
1423
|
+
/*
|
|
1424
|
+
Identical to the SIMPLE_TAPROOT channel type, but with extra functionality.
|
|
1425
|
+
This channel type also commits to additional meta data in the tapscript
|
|
1426
|
+
leaves for the scripts in a channel.
|
|
1427
|
+
*/
|
|
1428
|
+
SIMPLE_TAPROOT_OVERLAY = 6;
|
|
1393
1429
|
}
|
|
1394
1430
|
|
|
1395
1431
|
message ChannelConstraints {
|
|
@@ -1592,6 +1628,11 @@ message Channel {
|
|
|
1592
1628
|
the channel's operation.
|
|
1593
1629
|
*/
|
|
1594
1630
|
string memo = 36;
|
|
1631
|
+
|
|
1632
|
+
/*
|
|
1633
|
+
Custom channel data that might be populated in custom channels.
|
|
1634
|
+
*/
|
|
1635
|
+
bytes custom_channel_data = 37;
|
|
1595
1636
|
}
|
|
1596
1637
|
|
|
1597
1638
|
message ListChannelsRequest {
|
|
@@ -2028,10 +2069,38 @@ message ChannelOpenUpdate {
|
|
|
2028
2069
|
ChannelPoint channel_point = 1;
|
|
2029
2070
|
}
|
|
2030
2071
|
|
|
2072
|
+
message CloseOutput {
|
|
2073
|
+
// The amount in satoshi of this close output. This amount is the final
|
|
2074
|
+
// commitment balance of the channel and the actual amount paid out on chain
|
|
2075
|
+
// might be smaller due to subtracted fees.
|
|
2076
|
+
int64 amount_sat = 1;
|
|
2077
|
+
|
|
2078
|
+
// The pkScript of the close output.
|
|
2079
|
+
bytes pk_script = 2;
|
|
2080
|
+
|
|
2081
|
+
// Whether this output is for the local or remote node.
|
|
2082
|
+
bool is_local = 3;
|
|
2083
|
+
|
|
2084
|
+
// The TLV encoded custom channel data records for this output, which might
|
|
2085
|
+
// be set for custom channels.
|
|
2086
|
+
bytes custom_channel_data = 4;
|
|
2087
|
+
}
|
|
2088
|
+
|
|
2031
2089
|
message ChannelCloseUpdate {
|
|
2032
2090
|
bytes closing_txid = 1;
|
|
2033
2091
|
|
|
2034
2092
|
bool success = 2;
|
|
2093
|
+
|
|
2094
|
+
// The local channel close output. If the local channel balance was dust to
|
|
2095
|
+
// begin with, this output will not be set.
|
|
2096
|
+
CloseOutput local_close_output = 3;
|
|
2097
|
+
|
|
2098
|
+
// The remote channel close output. If the remote channel balance was dust
|
|
2099
|
+
// to begin with, this output will not be set.
|
|
2100
|
+
CloseOutput remote_close_output = 4;
|
|
2101
|
+
|
|
2102
|
+
// Any additional outputs that might be added for custom channel types.
|
|
2103
|
+
repeated CloseOutput additional_outputs = 5;
|
|
2035
2104
|
}
|
|
2036
2105
|
|
|
2037
2106
|
message CloseChannelRequest {
|
|
@@ -2709,6 +2778,11 @@ message PendingChannelsResponse {
|
|
|
2709
2778
|
impacts the channel's operation.
|
|
2710
2779
|
*/
|
|
2711
2780
|
string memo = 13;
|
|
2781
|
+
|
|
2782
|
+
/*
|
|
2783
|
+
Custom channel data that might be populated in custom channels.
|
|
2784
|
+
*/
|
|
2785
|
+
bytes custom_channel_data = 34;
|
|
2712
2786
|
}
|
|
2713
2787
|
|
|
2714
2788
|
message PendingOpenChannel {
|
|
@@ -2968,6 +3042,12 @@ message ChannelBalanceResponse {
|
|
|
2968
3042
|
|
|
2969
3043
|
// Sum of channels pending remote balances.
|
|
2970
3044
|
Amount pending_open_remote_balance = 8;
|
|
3045
|
+
|
|
3046
|
+
/*
|
|
3047
|
+
Custom channel data that might be populated if there are custom channels
|
|
3048
|
+
present.
|
|
3049
|
+
*/
|
|
3050
|
+
bytes custom_channel_data = 9;
|
|
2971
3051
|
}
|
|
2972
3052
|
|
|
2973
3053
|
message QueryRoutesRequest {
|
|
@@ -3293,6 +3373,20 @@ message Route {
|
|
|
3293
3373
|
The total amount in millisatoshis.
|
|
3294
3374
|
*/
|
|
3295
3375
|
int64 total_amt_msat = 6;
|
|
3376
|
+
|
|
3377
|
+
/*
|
|
3378
|
+
The actual on-chain amount that was sent out to the first hop. This value is
|
|
3379
|
+
only different from the total_amt_msat field if this is a custom channel
|
|
3380
|
+
payment and the value transported in the HTLC is different from the BTC
|
|
3381
|
+
amount in the HTLC. If this value is zero, then this is an old payment that
|
|
3382
|
+
didn't have this value yet and can be ignored.
|
|
3383
|
+
*/
|
|
3384
|
+
int64 first_hop_amount_msat = 7;
|
|
3385
|
+
|
|
3386
|
+
/*
|
|
3387
|
+
Custom channel data that might be populated in custom channels.
|
|
3388
|
+
*/
|
|
3389
|
+
bytes custom_channel_data = 8;
|
|
3296
3390
|
}
|
|
3297
3391
|
|
|
3298
3392
|
message NodeInfoRequest {
|
|
@@ -3478,6 +3572,8 @@ message NetworkInfo {
|
|
|
3478
3572
|
message StopRequest {
|
|
3479
3573
|
}
|
|
3480
3574
|
message StopResponse {
|
|
3575
|
+
// The status of the stop operation.
|
|
3576
|
+
string status = 1;
|
|
3481
3577
|
}
|
|
3482
3578
|
|
|
3483
3579
|
message GraphTopologySubscription {
|
|
@@ -3922,6 +4018,11 @@ message InvoiceHTLC {
|
|
|
3922
4018
|
|
|
3923
4019
|
// Details relevant to AMP HTLCs, only populated if this is an AMP HTLC.
|
|
3924
4020
|
AMP amp = 11;
|
|
4021
|
+
|
|
4022
|
+
/*
|
|
4023
|
+
Custom channel data that might be populated in custom channels.
|
|
4024
|
+
*/
|
|
4025
|
+
bytes custom_channel_data = 12;
|
|
3925
4026
|
}
|
|
3926
4027
|
|
|
3927
4028
|
// Details specific to AMP HTLCs.
|
|
@@ -4162,6 +4263,12 @@ message Payment {
|
|
|
4162
4263
|
uint64 payment_index = 15;
|
|
4163
4264
|
|
|
4164
4265
|
PaymentFailureReason failure_reason = 16;
|
|
4266
|
+
|
|
4267
|
+
/*
|
|
4268
|
+
The custom TLV records that were sent to the first hop as part of the HTLC
|
|
4269
|
+
wire message for this payment.
|
|
4270
|
+
*/
|
|
4271
|
+
map<uint64, bytes> first_hop_custom_records = 17;
|
|
4165
4272
|
}
|
|
4166
4273
|
|
|
4167
4274
|
message HTLCAttempt {
|
|
@@ -4291,9 +4398,13 @@ message DeleteAllPaymentsRequest {
|
|
|
4291
4398
|
}
|
|
4292
4399
|
|
|
4293
4400
|
message DeletePaymentResponse {
|
|
4401
|
+
// The status of the delete operation.
|
|
4402
|
+
string status = 1;
|
|
4294
4403
|
}
|
|
4295
4404
|
|
|
4296
4405
|
message DeleteAllPaymentsResponse {
|
|
4406
|
+
// The status of the delete operation.
|
|
4407
|
+
string status = 1;
|
|
4297
4408
|
}
|
|
4298
4409
|
|
|
4299
4410
|
message AbandonChannelRequest {
|
|
@@ -4310,6 +4421,8 @@ message AbandonChannelRequest {
|
|
|
4310
4421
|
}
|
|
4311
4422
|
|
|
4312
4423
|
message AbandonChannelResponse {
|
|
4424
|
+
// The status of the abandon operation.
|
|
4425
|
+
string status = 1;
|
|
4313
4426
|
}
|
|
4314
4427
|
|
|
4315
4428
|
message DebugLevelRequest {
|
|
@@ -4469,6 +4582,15 @@ message PolicyUpdateRequest {
|
|
|
4469
4582
|
// Optional inbound fee. If unset, the previously set value will be
|
|
4470
4583
|
// retained [EXPERIMENTAL].
|
|
4471
4584
|
InboundFee inbound_fee = 10;
|
|
4585
|
+
|
|
4586
|
+
// Under unknown circumstances a channel can exist with a missing edge in
|
|
4587
|
+
// the graph database. This can cause an 'edge not found' error when calling
|
|
4588
|
+
// `getchaninfo` and/or cause the default channel policy to be used during
|
|
4589
|
+
// forwards. Setting this flag will recreate the edge if not found, allowing
|
|
4590
|
+
// updating this channel policy and fixing the missing edge problem for this
|
|
4591
|
+
// channel permanently. For fields not set in this command, the default
|
|
4592
|
+
// policy will be created.
|
|
4593
|
+
bool create_missing_edge = 11;
|
|
4472
4594
|
}
|
|
4473
4595
|
|
|
4474
4596
|
enum UpdateFailure {
|
|
@@ -4649,12 +4771,15 @@ message RestoreChanBackupRequest {
|
|
|
4649
4771
|
}
|
|
4650
4772
|
}
|
|
4651
4773
|
message RestoreBackupResponse {
|
|
4774
|
+
// The number of channels successfully restored.
|
|
4775
|
+
uint32 num_restored = 1;
|
|
4652
4776
|
}
|
|
4653
4777
|
|
|
4654
4778
|
message ChannelBackupSubscription {
|
|
4655
4779
|
}
|
|
4656
4780
|
|
|
4657
4781
|
message VerifyChanBackupResponse {
|
|
4782
|
+
repeated string chan_points = 1;
|
|
4658
4783
|
}
|
|
4659
4784
|
|
|
4660
4785
|
message MacaroonPermission {
|
package/grpc/protos/router.proto
CHANGED
|
@@ -176,6 +176,25 @@ service Router {
|
|
|
176
176
|
*/
|
|
177
177
|
rpc UpdateChanStatus (UpdateChanStatusRequest)
|
|
178
178
|
returns (UpdateChanStatusResponse);
|
|
179
|
+
|
|
180
|
+
/*
|
|
181
|
+
XAddLocalChanAliases is an experimental API that creates a set of new
|
|
182
|
+
channel SCID alias mappings. The final total set of aliases in the manager
|
|
183
|
+
after the add operation is returned. This is only a locally stored alias,
|
|
184
|
+
and will not be communicated to the channel peer via any message. Therefore,
|
|
185
|
+
routing over such an alias will only work if the peer also calls this same
|
|
186
|
+
RPC on their end. If an alias already exists, an error is returned
|
|
187
|
+
*/
|
|
188
|
+
rpc XAddLocalChanAliases (AddAliasesRequest) returns (AddAliasesResponse);
|
|
189
|
+
|
|
190
|
+
/*
|
|
191
|
+
XDeleteLocalChanAliases is an experimental API that deletes a set of alias
|
|
192
|
+
mappings. The final total set of aliases in the manager after the delete
|
|
193
|
+
operation is returned. The deletion will not be communicated to the channel
|
|
194
|
+
peer via any message.
|
|
195
|
+
*/
|
|
196
|
+
rpc XDeleteLocalChanAliases (DeleteAliasesRequest)
|
|
197
|
+
returns (DeleteAliasesResponse);
|
|
179
198
|
}
|
|
180
199
|
|
|
181
200
|
message SendPaymentRequest {
|
|
@@ -339,6 +358,15 @@ message SendPaymentRequest {
|
|
|
339
358
|
being sent.
|
|
340
359
|
*/
|
|
341
360
|
bool cancelable = 24;
|
|
361
|
+
|
|
362
|
+
/*
|
|
363
|
+
An optional field that can be used to pass an arbitrary set of TLV records
|
|
364
|
+
to the first hop peer of this payment. This can be used to pass application
|
|
365
|
+
specific data during the payment attempt. Record types are required to be in
|
|
366
|
+
the custom range >= 65536. When using REST, the values must be encoded as
|
|
367
|
+
base64.
|
|
368
|
+
*/
|
|
369
|
+
map<uint64, bytes> first_hop_custom_records = 25;
|
|
342
370
|
}
|
|
343
371
|
|
|
344
372
|
message TrackPaymentRequest {
|
|
@@ -432,6 +460,15 @@ message SendToRouteRequest {
|
|
|
432
460
|
routes, incorrect payment details, or insufficient funds.
|
|
433
461
|
*/
|
|
434
462
|
bool skip_temp_err = 3;
|
|
463
|
+
|
|
464
|
+
/*
|
|
465
|
+
An optional field that can be used to pass an arbitrary set of TLV records
|
|
466
|
+
to the first hop peer of this payment. This can be used to pass application
|
|
467
|
+
specific data during the payment attempt. Record types are required to be in
|
|
468
|
+
the custom range >= 65536. When using REST, the values must be encoded as
|
|
469
|
+
base64.
|
|
470
|
+
*/
|
|
471
|
+
map<uint64, bytes> first_hop_custom_records = 4;
|
|
435
472
|
}
|
|
436
473
|
|
|
437
474
|
message SendToRouteResponse {
|
|
@@ -707,6 +744,15 @@ message BuildRouteRequest {
|
|
|
707
744
|
This is also called payment secret in specifications (e.g. BOLT 11).
|
|
708
745
|
*/
|
|
709
746
|
bytes payment_addr = 5;
|
|
747
|
+
|
|
748
|
+
/*
|
|
749
|
+
An optional field that can be used to pass an arbitrary set of TLV records
|
|
750
|
+
to the first hop peer of this payment. This can be used to pass application
|
|
751
|
+
specific data during the payment attempt. Record types are required to be in
|
|
752
|
+
the custom range >= 65536. When using REST, the values must be encoded as
|
|
753
|
+
base64.
|
|
754
|
+
*/
|
|
755
|
+
map<uint64, bytes> first_hop_custom_records = 6;
|
|
710
756
|
}
|
|
711
757
|
|
|
712
758
|
message BuildRouteResponse {
|
|
@@ -963,12 +1009,17 @@ message ForwardHtlcInterceptRequest {
|
|
|
963
1009
|
// The block height at which this htlc will be auto-failed to prevent the
|
|
964
1010
|
// channel from force-closing.
|
|
965
1011
|
int32 auto_fail_height = 10;
|
|
1012
|
+
|
|
1013
|
+
// The custom records of the peer's incoming p2p wire message.
|
|
1014
|
+
map<uint64, bytes> in_wire_custom_records = 11;
|
|
966
1015
|
}
|
|
967
1016
|
|
|
968
1017
|
/**
|
|
969
1018
|
ForwardHtlcInterceptResponse enables the caller to resolve a previously hold
|
|
970
1019
|
forward. The caller can choose either to:
|
|
971
1020
|
- `Resume`: Execute the default behavior (usually forward).
|
|
1021
|
+
- `ResumeModified`: Execute the default behavior (usually forward) with HTLC
|
|
1022
|
+
field modifications.
|
|
972
1023
|
- `Reject`: Fail the htlc backwards.
|
|
973
1024
|
- `Settle`: Settle this htlc with a given preimage.
|
|
974
1025
|
*/
|
|
@@ -999,12 +1050,40 @@ message ForwardHtlcInterceptResponse {
|
|
|
999
1050
|
// For backwards-compatibility reasons, TEMPORARY_CHANNEL_FAILURE is the
|
|
1000
1051
|
// default value for this field.
|
|
1001
1052
|
lnrpc.Failure.FailureCode failure_code = 5;
|
|
1053
|
+
|
|
1054
|
+
// The amount that was set on the p2p wire message of the incoming HTLC.
|
|
1055
|
+
// This field is ignored if the action is not RESUME_MODIFIED or the amount
|
|
1056
|
+
// is zero.
|
|
1057
|
+
uint64 in_amount_msat = 6;
|
|
1058
|
+
|
|
1059
|
+
// The amount to set on the p2p wire message of the resumed HTLC. This field
|
|
1060
|
+
// is ignored if the action is not RESUME_MODIFIED or the amount is zero.
|
|
1061
|
+
uint64 out_amount_msat = 7;
|
|
1062
|
+
|
|
1063
|
+
// Any custom records that should be set on the p2p wire message message of
|
|
1064
|
+
// the resumed HTLC. This field is ignored if the action is not
|
|
1065
|
+
// RESUME_MODIFIED.
|
|
1066
|
+
//
|
|
1067
|
+
// This map will merge with the existing set of custom records (if any),
|
|
1068
|
+
// replacing any conflicting types. Note that there currently is no support
|
|
1069
|
+
// for deleting existing custom records (they can only be replaced).
|
|
1070
|
+
map<uint64, bytes> out_wire_custom_records = 8;
|
|
1002
1071
|
}
|
|
1003
1072
|
|
|
1004
1073
|
enum ResolveHoldForwardAction {
|
|
1074
|
+
// SETTLE is an action that is used to settle an HTLC instead of forwarding
|
|
1075
|
+
// it.
|
|
1005
1076
|
SETTLE = 0;
|
|
1077
|
+
|
|
1078
|
+
// FAIL is an action that is used to fail an HTLC backwards.
|
|
1006
1079
|
FAIL = 1;
|
|
1080
|
+
|
|
1081
|
+
// RESUME is an action that is used to resume a forward HTLC.
|
|
1007
1082
|
RESUME = 2;
|
|
1083
|
+
|
|
1084
|
+
// RESUME_MODIFIED is an action that is used to resume a hold forward HTLC
|
|
1085
|
+
// with modifications specified during interception.
|
|
1086
|
+
RESUME_MODIFIED = 3;
|
|
1008
1087
|
}
|
|
1009
1088
|
|
|
1010
1089
|
message UpdateChanStatusRequest {
|
|
@@ -1020,4 +1099,20 @@ enum ChanStatusAction {
|
|
|
1020
1099
|
}
|
|
1021
1100
|
|
|
1022
1101
|
message UpdateChanStatusResponse {
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
message AddAliasesRequest {
|
|
1105
|
+
repeated lnrpc.AliasMap alias_maps = 1;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
message AddAliasesResponse {
|
|
1109
|
+
repeated lnrpc.AliasMap alias_maps = 1;
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
message DeleteAliasesRequest {
|
|
1113
|
+
repeated lnrpc.AliasMap alias_maps = 1;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
message DeleteAliasesResponse {
|
|
1117
|
+
repeated lnrpc.AliasMap alias_maps = 1;
|
|
1023
1118
|
}
|
|
@@ -222,14 +222,14 @@ service WalletKit {
|
|
|
222
222
|
*/
|
|
223
223
|
rpc SendOutputs (SendOutputsRequest) returns (SendOutputsResponse);
|
|
224
224
|
|
|
225
|
-
/*
|
|
225
|
+
/* lncli: `wallet estimatefeerate`
|
|
226
226
|
EstimateFee attempts to query the internal fee estimator of the wallet to
|
|
227
227
|
determine the fee (in sat/kw) to attach to a transaction in order to
|
|
228
228
|
achieve the confirmation target.
|
|
229
229
|
*/
|
|
230
230
|
rpc EstimateFee (EstimateFeeRequest) returns (EstimateFeeResponse);
|
|
231
231
|
|
|
232
|
-
/* lncli: `pendingsweeps`
|
|
232
|
+
/* lncli: `wallet pendingsweeps`
|
|
233
233
|
PendingSweeps returns lists of on-chain outputs that lnd is currently
|
|
234
234
|
attempting to sweep within its central batching engine. Outputs with similar
|
|
235
235
|
fee rates are batched together in order to sweep them within a single
|
|
@@ -273,6 +273,13 @@ service WalletKit {
|
|
|
273
273
|
*/
|
|
274
274
|
rpc BumpFee (BumpFeeRequest) returns (BumpFeeResponse);
|
|
275
275
|
|
|
276
|
+
/* lncli: `wallet bumpforceclosefee`
|
|
277
|
+
BumpForceCloseFee is an endpoint that allows users to bump the fee of a
|
|
278
|
+
channel force close. This only works for channels with option_anchors.
|
|
279
|
+
*/
|
|
280
|
+
rpc BumpForceCloseFee (BumpForceCloseFeeRequest)
|
|
281
|
+
returns (BumpForceCloseFeeResponse);
|
|
282
|
+
|
|
276
283
|
/* lncli: `wallet listsweeps`
|
|
277
284
|
ListSweeps returns a list of the sweep transactions our node has produced.
|
|
278
285
|
Note that these sweeps may not be confirmed yet, as we record sweeps on
|
|
@@ -407,6 +414,8 @@ message ReleaseOutputRequest {
|
|
|
407
414
|
}
|
|
408
415
|
|
|
409
416
|
message ReleaseOutputResponse {
|
|
417
|
+
// The status of the release operation.
|
|
418
|
+
string status = 1;
|
|
410
419
|
}
|
|
411
420
|
|
|
412
421
|
message KeyReq {
|
|
@@ -692,6 +701,8 @@ message ImportPublicKeyRequest {
|
|
|
692
701
|
AddressType address_type = 2;
|
|
693
702
|
}
|
|
694
703
|
message ImportPublicKeyResponse {
|
|
704
|
+
// The status of the import operation.
|
|
705
|
+
string status = 1;
|
|
695
706
|
}
|
|
696
707
|
|
|
697
708
|
message ImportTapscriptRequest {
|
|
@@ -1226,6 +1237,46 @@ message BumpFeeResponse {
|
|
|
1226
1237
|
string status = 1;
|
|
1227
1238
|
}
|
|
1228
1239
|
|
|
1240
|
+
message BumpForceCloseFeeRequest {
|
|
1241
|
+
// The channel point which force close transaction we are attempting to
|
|
1242
|
+
// bump the fee rate for.
|
|
1243
|
+
lnrpc.ChannelPoint chan_point = 1;
|
|
1244
|
+
|
|
1245
|
+
// Optional. The deadline delta in number of blocks that the anchor output
|
|
1246
|
+
// should be spent within to bump the closing transaction.
|
|
1247
|
+
uint32 deadline_delta = 2;
|
|
1248
|
+
|
|
1249
|
+
/*
|
|
1250
|
+
Optional. The starting fee rate, expressed in sat/vbyte. This value will be
|
|
1251
|
+
used by the sweeper's fee function as its starting fee rate. When not set,
|
|
1252
|
+
the sweeper will use the estimated fee rate using the target_conf as the
|
|
1253
|
+
starting fee rate.
|
|
1254
|
+
*/
|
|
1255
|
+
uint64 starting_feerate = 3;
|
|
1256
|
+
|
|
1257
|
+
/*
|
|
1258
|
+
Optional. Whether this cpfp transaction will be triggered immediately. When
|
|
1259
|
+
set to true, the sweeper will consider all currently registered sweeps and
|
|
1260
|
+
trigger new batch transactions including the sweeping of the anchor output
|
|
1261
|
+
related to the selected force close transaction.
|
|
1262
|
+
*/
|
|
1263
|
+
bool immediate = 4;
|
|
1264
|
+
|
|
1265
|
+
/*
|
|
1266
|
+
Optional. The max amount in sats that can be used as the fees. For already
|
|
1267
|
+
registered anchor outputs if not set explicitly the old value will be used.
|
|
1268
|
+
For channel force closes which have no HTLCs in their commitment transaction
|
|
1269
|
+
this value has to be set to an appropriate amount to pay for the cpfp
|
|
1270
|
+
transaction of the force closed channel otherwise the fee bumping will fail.
|
|
1271
|
+
*/
|
|
1272
|
+
uint64 budget = 5;
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
message BumpForceCloseFeeResponse {
|
|
1276
|
+
// The status of the force close fee bump operation.
|
|
1277
|
+
string status = 1;
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1229
1280
|
message ListSweepsRequest {
|
|
1230
1281
|
/*
|
|
1231
1282
|
Retrieve the full sweep transaction details. If false, only the sweep txids
|
|
@@ -1271,6 +1322,8 @@ message LabelTransactionRequest {
|
|
|
1271
1322
|
}
|
|
1272
1323
|
|
|
1273
1324
|
message LabelTransactionResponse {
|
|
1325
|
+
// The status of the label operation.
|
|
1326
|
+
string status = 1;
|
|
1274
1327
|
}
|
|
1275
1328
|
|
|
1276
1329
|
// The possible change address types for default accounts and single imported
|
|
@@ -1341,6 +1394,12 @@ message FundPsbtRequest {
|
|
|
1341
1394
|
input with.
|
|
1342
1395
|
*/
|
|
1343
1396
|
uint64 sat_per_vbyte = 4;
|
|
1397
|
+
|
|
1398
|
+
/*
|
|
1399
|
+
The fee rate, expressed in sat/kWU, that should be used to spend the
|
|
1400
|
+
input with.
|
|
1401
|
+
*/
|
|
1402
|
+
uint64 sat_per_kw = 11;
|
|
1344
1403
|
}
|
|
1345
1404
|
|
|
1346
1405
|
/*
|
|
@@ -1364,6 +1423,9 @@ message FundPsbtRequest {
|
|
|
1364
1423
|
|
|
1365
1424
|
// The strategy to use for selecting coins during funding the PSBT.
|
|
1366
1425
|
lnrpc.CoinSelectionStrategy coin_selection_strategy = 10;
|
|
1426
|
+
|
|
1427
|
+
// The max fee to total output amount ratio that this psbt should adhere to.
|
|
1428
|
+
double max_fee_ratio = 12;
|
|
1367
1429
|
}
|
|
1368
1430
|
message FundPsbtResponse {
|
|
1369
1431
|
/*
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"b4e7131bdb47531ad2f00ce345ddcdb58935bba5": "0.15.3-beta",
|
|
48
48
|
"bd0c46b4fcb027af1915bd67a3da70e8ca5c6efe": "0.14.3-beta",
|
|
49
49
|
"c0a09209782b1c62c3393fcea0844e095c25046b": "0.15.5-beta",
|
|
50
|
+
"ddeb8351684a611f6c27f16f09be75d5c039f08c": "0.18.4-beta",
|
|
50
51
|
"d176d2d65fc06e6631c4dc9478592be8545a21de": "0.12.0-beta",
|
|
51
52
|
"d22b3937eae91d33cd8c035e8fa894e3793e1636": "0.18.2-beta",
|
|
52
53
|
"d233f61383f2f950aa06f5b09da5b0e78e784fae": "0.12.1-beta",
|
|
@@ -46,10 +46,14 @@ export type PayViaRoutesArgs = AuthenticatedLightningArgs<{
|
|
|
46
46
|
}[];
|
|
47
47
|
/** Total Millitokens To Pay */
|
|
48
48
|
mtokens: string;
|
|
49
|
+
/** Payment Identifier Hex */
|
|
50
|
+
payment?: string;
|
|
49
51
|
/** Expiration Block Height */
|
|
50
52
|
timeout: number;
|
|
51
53
|
/** Total Tokens To Pay */
|
|
52
54
|
tokens: number;
|
|
55
|
+
/** Total Millitokens */
|
|
56
|
+
total_mtokens?: string;
|
|
53
57
|
}[];
|
|
54
58
|
}>;
|
|
55
59
|
|
package/package.json
CHANGED
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
"url": "https://github.com/alexbosworth/lightning/issues"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@grpc/grpc-js": "1.12.
|
|
10
|
+
"@grpc/grpc-js": "1.12.5",
|
|
11
11
|
"@grpc/proto-loader": "0.7.13",
|
|
12
|
-
"@types/node": "22.
|
|
12
|
+
"@types/node": "22.10.2",
|
|
13
13
|
"@types/request": "2.48.12",
|
|
14
|
-
"@types/ws": "8.5.
|
|
14
|
+
"@types/ws": "8.5.13",
|
|
15
15
|
"async": "3.2.6",
|
|
16
16
|
"asyncjs-util": "1.2.12",
|
|
17
|
-
"bitcoinjs-lib": "6.1.
|
|
17
|
+
"bitcoinjs-lib": "6.1.7",
|
|
18
18
|
"bn.js": "5.2.1",
|
|
19
19
|
"bolt07": "1.9.4",
|
|
20
20
|
"bolt09": "2.1.0",
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
"invoices": "3.0.0",
|
|
23
23
|
"psbt": "3.0.0",
|
|
24
24
|
"tiny-secp256k1": "2.2.3",
|
|
25
|
-
"type-fest": "4.
|
|
25
|
+
"type-fest": "4.30.2"
|
|
26
26
|
},
|
|
27
27
|
"description": "Lightning Network client library",
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"tsd": "0.31.2",
|
|
30
|
-
"typescript": "5.
|
|
30
|
+
"typescript": "5.7.2"
|
|
31
31
|
},
|
|
32
32
|
"engines": {
|
|
33
33
|
"node": ">=18"
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"directory": "test/typescript"
|
|
54
54
|
},
|
|
55
55
|
"types": "index.d.ts",
|
|
56
|
-
"version": "10.22.
|
|
56
|
+
"version": "10.22.3"
|
|
57
57
|
}
|