+ /**
+ * Addresses that may be used to connect to [`OnionMessagePath::first_node`].
+ *
+ * Only needs to be set if a connection to the node is required. [`OnionMessenger`] may use
+ * this to initiate such a connection.
+ *
+ * Returns a copy of the field.
+ */
+ public get_first_node_addresses(): Option_CVec_SocketAddressZZ {
+ const ret: bigint = bindings.OnionMessagePath_get_first_node_addresses(this.ptr);
+ const ret_hu_conv: Option_CVec_SocketAddressZZ = Option_CVec_SocketAddressZZ.constr_from_ptr(ret);
+ CommonBase.add_ref_from(ret_hu_conv, this);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Addresses that may be used to connect to [`OnionMessagePath::first_node`].
+ *
+ * Only needs to be set if a connection to the node is required. [`OnionMessenger`] may use
+ * this to initiate such a connection.
+ */
+ public set_first_node_addresses(val: Option_CVec_SocketAddressZZ): void {
+ bindings.OnionMessagePath_set_first_node_addresses(this.ptr, CommonBase.get_ptr_of(val));
+ CommonBase.add_ref_from(this, val);
+ }
+