- public get_unspendable_punishment_reserve(): number {
- const ret: number = bindings.ChannelCounterparty_get_unspendable_punishment_reserve(this.ptr);
+ /**
+ * The value, in satoshis, that must always be held in the channel for our counterparty. This
+ * value ensures that if our counterparty broadcasts a revoked state, we can punish them by
+ * claiming at least this value on chain.
+ *
+ * This value is not included in [`inbound_capacity_msat`] as it can never be spent.
+ *
+ * [`inbound_capacity_msat`]: ChannelDetails::inbound_capacity_msat
+ */
+ public get_unspendable_punishment_reserve(): bigint {
+ const ret: bigint = bindings.ChannelCounterparty_get_unspendable_punishment_reserve(this.ptr);