+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(val);
+ }
+
+ /**
+ * The channel capacity as seen on-chain, if chain lookup is available.
+ */
+ public Option_u64Z get_capacity_sats() {
+ long ret = bindings.ChannelInfo_get_capacity_sats(this.ptr);
+ Reference.reachabilityFence(this);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ Option_u64Z ret_hu_conv = Option_u64Z.constr_from_ptr(ret);
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;
+ }
+
+ /**
+ * The channel capacity as seen on-chain, if chain lookup is available.
+ */
+ public void set_capacity_sats(Option_u64Z val) {
+ bindings.ChannelInfo_set_capacity_sats(this.ptr, val.ptr);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(val);