@@ -60,6 +60,8 @@ export enum CommitmentType {
6060 * channel before its maturity date.
6161 */
6262 SCRIPT_ENFORCED_LEASE = 'SCRIPT_ENFORCED_LEASE' ,
63+ /** SIMPLE_TAPROOT - TODO(roasbeef): need script enforce mirror type for the above as well? */
64+ SIMPLE_TAPROOT = 'SIMPLE_TAPROOT' ,
6365 UNRECOGNIZED = 'UNRECOGNIZED'
6466}
6567
@@ -995,6 +997,12 @@ export interface Channel {
995997 peerAlias : string ;
996998 /** This is the peer SCID alias. */
997999 peerScidAlias : string ;
1000+ /**
1001+ * An optional note-to-self to go along with the channel containing some
1002+ * useful information. This is only ever stored locally and in no way impacts
1003+ * the channel's operation.
1004+ */
1005+ memo : string ;
9981006}
9991007
10001008export interface ListChannelsRequest {
@@ -1460,6 +1468,61 @@ export interface BatchOpenChannel {
14601468 * the remote peer supports explicit channel negotiation.
14611469 */
14621470 commitmentType : CommitmentType ;
1471+ /**
1472+ * The maximum amount of coins in millisatoshi that can be pending within
1473+ * the channel. It only applies to the remote party.
1474+ */
1475+ remoteMaxValueInFlightMsat : string ;
1476+ /**
1477+ * The maximum number of concurrent HTLCs we will allow the remote party to add
1478+ * to the commitment transaction.
1479+ */
1480+ remoteMaxHtlcs : number ;
1481+ /**
1482+ * Max local csv is the maximum csv delay we will allow for our own commitment
1483+ * transaction.
1484+ */
1485+ maxLocalCsv : number ;
1486+ /** If this is true, then a zero-conf channel open will be attempted. */
1487+ zeroConf : boolean ;
1488+ /**
1489+ * If this is true, then an option-scid-alias channel-type open will be
1490+ * attempted.
1491+ */
1492+ scidAlias : boolean ;
1493+ /** The base fee charged regardless of the number of milli-satoshis sent. */
1494+ baseFee : string ;
1495+ /**
1496+ * The fee rate in ppm (parts per million) that will be charged in
1497+ * proportion of the value of each forwarded HTLC.
1498+ */
1499+ feeRate : string ;
1500+ /**
1501+ * If use_base_fee is true the open channel announcement will update the
1502+ * channel base fee with the value specified in base_fee. In the case of
1503+ * a base_fee of 0 use_base_fee is needed downstream to distinguish whether
1504+ * to use the default base fee value specified in the config or 0.
1505+ */
1506+ useBaseFee : boolean ;
1507+ /**
1508+ * If use_fee_rate is true the open channel announcement will update the
1509+ * channel fee rate with the value specified in fee_rate. In the case of
1510+ * a fee_rate of 0 use_fee_rate is needed downstream to distinguish whether
1511+ * to use the default fee rate value specified in the config or 0.
1512+ */
1513+ useFeeRate : boolean ;
1514+ /**
1515+ * The number of satoshis we require the remote peer to reserve. This value,
1516+ * if specified, must be above the dust limit and below 20% of the channel
1517+ * capacity.
1518+ */
1519+ remoteChanReserveSat : string ;
1520+ /**
1521+ * An optional note-to-self to go along with the channel containing some
1522+ * useful information. This is only ever stored locally and in no way impacts
1523+ * the channel's operation.
1524+ */
1525+ memo : string ;
14631526}
14641527
14651528export interface BatchOpenChannelResponse {
@@ -1608,6 +1671,14 @@ export interface OpenChannelRequest {
16081671 * be zero and is ignored.
16091672 */
16101673 fundMax : boolean ;
1674+ /**
1675+ * An optional note-to-self to go along with the channel containing some
1676+ * useful information. This is only ever stored locally and in no way impacts
1677+ * the channel's operation.
1678+ */
1679+ memo : string ;
1680+ /** A list of selected outpoints that are allocated for channel funding. */
1681+ outpoints : OutPoint [ ] ;
16111682}
16121683
16131684export interface OpenStatusUpdate {
@@ -1674,6 +1745,8 @@ export interface ChanPointShim {
16741745 * the value is less than 500,000, or as an absolute height otherwise.
16751746 */
16761747 thawHeight : number ;
1748+ /** Indicates that the funding output is using a MuSig2 multi-sig output. */
1749+ musig2 : boolean ;
16771750}
16781751
16791752export interface PsbtShim {
@@ -1850,6 +1923,12 @@ export interface PendingChannelsResponse_PendingChannel {
18501923 chanStatusFlags : string ;
18511924 /** Whether this channel is advertised to the network or not. */
18521925 private : boolean ;
1926+ /**
1927+ * An optional note-to-self to go along with the channel containing some
1928+ * useful information. This is only ever stored locally and in no way
1929+ * impacts the channel's operation.
1930+ */
1931+ memo : string ;
18531932}
18541933
18551934export interface PendingChannelsResponse_PendingOpenChannel {
@@ -1871,6 +1950,18 @@ export interface PendingChannelsResponse_PendingOpenChannel {
18711950 * transaction. This value can later be updated once the channel is open.
18721951 */
18731952 feePerKw : string ;
1953+ /**
1954+ * The number of blocks until the funding transaction is considered
1955+ * expired. If this value gets close to zero, there is a risk that the
1956+ * channel funding will be canceled by the channel responder. The
1957+ * channel should be fee bumped using CPFP (see walletrpc.BumpFee) to
1958+ * ensure that the channel confirms in time. Otherwise a force-close
1959+ * will be necessary if the channel confirms after the funding
1960+ * transaction expires. A negative value means the channel responder has
1961+ * very likely canceled the funding and the channel will never become
1962+ * fully operational.
1963+ */
1964+ fundingExpiryBlocks : number ;
18741965}
18751966
18761967export interface PendingChannelsResponse_WaitingCloseChannel {
@@ -1983,7 +2074,13 @@ export interface WalletAccountBalance {
19832074 unconfirmedBalance : string ;
19842075}
19852076
1986- export interface WalletBalanceRequest { }
2077+ export interface WalletBalanceRequest {
2078+ /**
2079+ * The wallet account the balance is shown for.
2080+ * If this is not specified, the balance of the "default" account is shown.
2081+ */
2082+ account : string ;
2083+ }
19872084
19882085export interface WalletBalanceResponse {
19892086 /** The balance of the wallet */
@@ -2691,21 +2788,21 @@ export interface Invoice {
26912788 amtPaid : string ;
26922789 /**
26932790 * The amount that was accepted for this invoice, in satoshis. This will ONLY
2694- * be set if this invoice has been settled. We provide this field as if the
2695- * invoice was created with a zero value, then we need to record what amount
2696- * was ultimately accepted. Additionally, it's possible that the sender paid
2697- * MORE that was specified in the original invoice. So we'll record that here
2698- * as well.
2791+ * be set if this invoice has been settled or accepted . We provide this field
2792+ * as if the invoice was created with a zero value, then we need to record what
2793+ * amount was ultimately accepted. Additionally, it's possible that the sender
2794+ * paid MORE that was specified in the original invoice. So we'll record that
2795+ * here as well.
26992796 * Note: Output only, don't specify for creating an invoice.
27002797 */
27012798 amtPaidSat : string ;
27022799 /**
27032800 * The amount that was accepted for this invoice, in millisatoshis. This will
2704- * ONLY be set if this invoice has been settled. We provide this field as if
2705- * the invoice was created with a zero value, then we need to record what
2706- * amount was ultimately accepted. Additionally, it's possible that the sender
2707- * paid MORE that was specified in the original invoice. So we'll record that
2708- * here as well.
2801+ * ONLY be set if this invoice has been settled or accepted . We provide this
2802+ * field as if the invoice was created with a zero value, then we need to
2803+ * record what amount was ultimately accepted. Additionally, it's possible that
2804+ * the sender paid MORE that was specified in the original invoice. So we'll
2805+ * record that here as well.
27092806 * Note: Output only, don't specify for creating an invoice.
27102807 */
27112808 amtPaidMsat : string ;
@@ -3878,8 +3975,10 @@ export interface Lightning {
38783975 ) : Promise < SignMessageResponse > ;
38793976 /**
38803977 * lncli: `verifymessage`
3881- * VerifyMessage verifies a signature over a msg. The signature must be
3882- * zbase32 encoded and signed by an active node in the resident node's
3978+ * VerifyMessage verifies a signature over a message and recovers the signer's
3979+ * public key. The signature is only deemed valid if the recovered public key
3980+ * corresponds to a node key in the public Lightning network. The signature
3981+ * must be zbase32 encoded and signed by an active node in the resident node's
38833982 * channel database. In addition to returning the validity of the signature,
38843983 * VerifyMessage also returns the recovered pubkey from the signature.
38853984 */
0 commit comments