+ super.finalize();
+ if (ptr != 0) { bindings.OpenChannel_free(ptr); }
+ }
+
+ /**
+ * The genesis hash of the blockchain where the channel is to be opened
+ */
+ public byte[] get_chain_hash() {
+ byte[] ret = bindings.OpenChannel_get_chain_hash(this.ptr);
+ return ret;
+ }
+
+ /**
+ * The genesis hash of the blockchain where the channel is to be opened
+ */
+ public void set_chain_hash(byte[] val) {
+ bindings.OpenChannel_set_chain_hash(this.ptr, InternalUtils.check_arr_len(val, 32));
+ }
+
+ /**
+ * A temporary channel ID, until the funding outpoint is announced
+ */
+ public byte[] get_temporary_channel_id() {
+ byte[] ret = bindings.OpenChannel_get_temporary_channel_id(this.ptr);
+ return ret;