lightning 5.8.4 → 5.9.0
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 +6 -1
- package/grpc/protos/lightning.proto +45 -2
- package/grpc/protos/walletkit.proto +11 -1
- package/lnd_methods/address/address_formats.json +4 -2
- package/lnd_methods/address/create_chain_address.d.ts +1 -1
- package/lnd_methods/address/create_chain_address.js +3 -1
- package/lnd_methods/onchain/partially_sign_psbt.d.ts +1 -1
- package/lnd_methods/onchain/partially_sign_psbt.js +1 -1
- package/lnd_responses/constants.json +5 -0
- package/lnd_responses/rpc_utxo_as_utxo.js +3 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -620,6 +620,38 @@ message Utxo {
|
|
|
620
620
|
int64 confirmations = 6;
|
|
621
621
|
}
|
|
622
622
|
|
|
623
|
+
enum OutputScriptType {
|
|
624
|
+
SCRIPT_TYPE_PUBKEY_HASH = 0;
|
|
625
|
+
SCRIPT_TYPE_SCRIPT_HASH = 1;
|
|
626
|
+
SCRIPT_TYPE_WITNESS_V0_PUBKEY_HASH = 2;
|
|
627
|
+
SCRIPT_TYPE_WITNESS_V0_SCRIPT_HASH = 3;
|
|
628
|
+
SCRIPT_TYPE_PUBKEY = 4;
|
|
629
|
+
SCRIPT_TYPE_MULTISIG = 5;
|
|
630
|
+
SCRIPT_TYPE_NULLDATA = 6;
|
|
631
|
+
SCRIPT_TYPE_NON_STANDARD = 7;
|
|
632
|
+
SCRIPT_TYPE_WITNESS_UNKNOWN = 8;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
message OutputDetail {
|
|
636
|
+
// The type of the output
|
|
637
|
+
OutputScriptType output_type = 1;
|
|
638
|
+
|
|
639
|
+
// The address
|
|
640
|
+
string address = 2;
|
|
641
|
+
|
|
642
|
+
// The pkscript in hex
|
|
643
|
+
string pk_script = 3;
|
|
644
|
+
|
|
645
|
+
// The output index used in the raw transaction
|
|
646
|
+
int64 output_index = 4;
|
|
647
|
+
|
|
648
|
+
// The value of the output coin in satoshis
|
|
649
|
+
int64 amount = 5;
|
|
650
|
+
|
|
651
|
+
// Denotes if the output is controlled by the internal wallet
|
|
652
|
+
bool is_our_address = 6;
|
|
653
|
+
}
|
|
654
|
+
|
|
623
655
|
message Transaction {
|
|
624
656
|
// The transaction hash
|
|
625
657
|
string tx_hash = 1;
|
|
@@ -642,8 +674,12 @@ message Transaction {
|
|
|
642
674
|
// Fees paid for this transaction
|
|
643
675
|
int64 total_fees = 7;
|
|
644
676
|
|
|
645
|
-
// Addresses that received funds for this transaction
|
|
646
|
-
|
|
677
|
+
// Addresses that received funds for this transaction. Deprecated as it is
|
|
678
|
+
// now incorporated in the output_details field.
|
|
679
|
+
repeated string dest_addresses = 8 [deprecated = true];
|
|
680
|
+
|
|
681
|
+
// Outputs that received funds for this transaction
|
|
682
|
+
repeated OutputDetail output_details = 11;
|
|
647
683
|
|
|
648
684
|
// The raw transaction hex.
|
|
649
685
|
string raw_tx_hex = 9;
|
|
@@ -1102,12 +1138,15 @@ message ListUnspentResponse {
|
|
|
1102
1138
|
|
|
1103
1139
|
- `p2wkh`: Pay to witness key hash (`WITNESS_PUBKEY_HASH` = 0)
|
|
1104
1140
|
- `np2wkh`: Pay to nested witness key hash (`NESTED_PUBKEY_HASH` = 1)
|
|
1141
|
+
- `p2tr`: Pay to taproot pubkey (`TAPROOT_PUBKEY` = 4)
|
|
1105
1142
|
*/
|
|
1106
1143
|
enum AddressType {
|
|
1107
1144
|
WITNESS_PUBKEY_HASH = 0;
|
|
1108
1145
|
NESTED_PUBKEY_HASH = 1;
|
|
1109
1146
|
UNUSED_WITNESS_PUBKEY_HASH = 2;
|
|
1110
1147
|
UNUSED_NESTED_PUBKEY_HASH = 3;
|
|
1148
|
+
TAPROOT_PUBKEY = 4;
|
|
1149
|
+
UNUSED_TAPROOT_PUBKEY = 5;
|
|
1111
1150
|
}
|
|
1112
1151
|
|
|
1113
1152
|
message NewAddressRequest {
|
|
@@ -2502,6 +2541,10 @@ message WalletBalanceResponse {
|
|
|
2502
2541
|
// The unconfirmed balance of a wallet(with 0 confirmations)
|
|
2503
2542
|
int64 unconfirmed_balance = 3;
|
|
2504
2543
|
|
|
2544
|
+
// The total amount of wallet UTXOs held in outputs that are locked for
|
|
2545
|
+
// other usage.
|
|
2546
|
+
int64 locked_balance = 5;
|
|
2547
|
+
|
|
2505
2548
|
// A mapping of each wallet account's name to its balance.
|
|
2506
2549
|
map<string, WalletAccountBalance> account_balance = 4;
|
|
2507
2550
|
}
|
|
@@ -12,7 +12,9 @@ option go_package = "github.com/lightningnetwork/lnd/lnrpc/walletrpc";
|
|
|
12
12
|
service WalletKit {
|
|
13
13
|
/*
|
|
14
14
|
ListUnspent returns a list of all utxos spendable by the wallet with a
|
|
15
|
-
number of confirmations between the specified minimum and maximum.
|
|
15
|
+
number of confirmations between the specified minimum and maximum. By
|
|
16
|
+
default, all utxos are listed. To list only the unconfirmed utxos, set
|
|
17
|
+
the unconfirmed_only to true.
|
|
16
18
|
*/
|
|
17
19
|
rpc ListUnspent (ListUnspentRequest) returns (ListUnspentResponse);
|
|
18
20
|
|
|
@@ -240,6 +242,14 @@ message ListUnspentRequest {
|
|
|
240
242
|
|
|
241
243
|
// An optional filter to only include outputs belonging to an account.
|
|
242
244
|
string account = 3;
|
|
245
|
+
|
|
246
|
+
/*
|
|
247
|
+
When min_confs and max_confs are zero, setting false implicitly
|
|
248
|
+
overrides max_confs to be MaxInt32, otherwise max_confs remains
|
|
249
|
+
zero. An error is returned if the value is true and both min_confs
|
|
250
|
+
and max_confs are non-zero. (default: false)
|
|
251
|
+
*/
|
|
252
|
+
bool unconfirmed_only = 4;
|
|
243
253
|
}
|
|
244
254
|
|
|
245
255
|
message ListUnspentResponse {
|
|
@@ -13,8 +13,10 @@ const type = 'default';
|
|
|
13
13
|
|
|
14
14
|
Requires `address:write` permission
|
|
15
15
|
|
|
16
|
+
LND 0.14.3 below do not support p2tr addresses
|
|
17
|
+
|
|
16
18
|
{
|
|
17
|
-
[format]: <Receive Address Type String> // "np2wpkh" || "p2wpkh"
|
|
19
|
+
[format]: <Receive Address Type String> // "np2wpkh" || "p2tr" || "p2wpkh"
|
|
18
20
|
[is_unused]: <Get As-Yet Unused Address Bool>
|
|
19
21
|
lnd: <Authenticated LND API Object>
|
|
20
22
|
}
|
|
@@ -20,7 +20,7 @@ export type PartiallySignPsbtResult = {
|
|
|
20
20
|
*
|
|
21
21
|
* Requires LND built with `walletrpc` tag
|
|
22
22
|
*
|
|
23
|
-
* This method is not supported in LND 0.14.
|
|
23
|
+
* This method is not supported in LND 0.14.3 and below
|
|
24
24
|
*/
|
|
25
25
|
export const partiallySignPsbt: AuthenticatedLightningMethod<
|
|
26
26
|
PartiallySignPsbtArgs,
|
package/package.json
CHANGED
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
"url": "https://github.com/alexbosworth/lightning/issues"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@grpc/grpc-js": "1.
|
|
10
|
+
"@grpc/grpc-js": "1.6.1",
|
|
11
11
|
"@grpc/proto-loader": "0.6.9",
|
|
12
12
|
"@types/express": "4.17.13",
|
|
13
|
-
"@types/node": "17.0.
|
|
13
|
+
"@types/node": "17.0.23",
|
|
14
14
|
"@types/request": "2.48.8",
|
|
15
15
|
"@types/ws": "8.5.3",
|
|
16
16
|
"async": "3.2.3",
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"invoices": "2.0.4",
|
|
27
27
|
"psbt": "2.0.0",
|
|
28
28
|
"tiny-secp256k1": "2.2.1",
|
|
29
|
-
"type-fest": "2.12.
|
|
29
|
+
"type-fest": "2.12.2"
|
|
30
30
|
},
|
|
31
31
|
"description": "Lightning Network client library",
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@alexbosworth/node-fetch": "2.6.2",
|
|
34
|
-
"@alexbosworth/tap": "15.0.
|
|
35
|
-
"tsd": "0.
|
|
36
|
-
"typescript": "4.6.
|
|
34
|
+
"@alexbosworth/tap": "15.0.11",
|
|
35
|
+
"tsd": "0.20.0",
|
|
36
|
+
"typescript": "4.6.3",
|
|
37
37
|
"ws": "8.5.0"
|
|
38
38
|
},
|
|
39
39
|
"engines": {
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"directory": "test/typescript"
|
|
60
60
|
},
|
|
61
61
|
"types": "index.d.ts",
|
|
62
|
-
"version": "5.
|
|
62
|
+
"version": "5.9.0"
|
|
63
63
|
}
|