Skip to content

Commit 6be1ac2

Browse files
committed
feat: spendable reserved offchain balance lightning
TICKET: BTC-2859
1 parent 74d5bad commit 6be1ac2

File tree

1 file changed

+6
-0
lines changed
  • modules/abstract-lightning/src/codecs/api

1 file changed

+6
-0
lines changed

modules/abstract-lightning/src/codecs/api/balance.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ export const ChannelBalance = t.strict(
2727
pendingOpenLocalBalance: LndAmount,
2828
/** Sum of local remote balances. */
2929
pendingOpenRemoteBalance: LndAmount,
30+
/** Total reserved balance. */
31+
reservedBalance: LndAmount,
32+
/** Total spendable balance. */
33+
spendableBalance: LndAmount,
3034
},
3135
'ChannelBalance'
3236
);
@@ -76,6 +80,8 @@ export const LndGetOffchainBalances = t.strict(
7680
inboundBalance: BigIntFromString,
7781
inboundPendingBalance: BigIntFromString,
7882
inboundUnsettledBalance: BigIntFromString,
83+
reservedBalance: BigIntFromString,
84+
spendableBalance: BigIntFromString,
7985
},
8086
'LndGetOffchainBalances'
8187
);

0 commit comments

Comments
 (0)