Package org.ldk.structs
Class TxAddOutput
- java.lang.Object
-
- org.ldk.structs.TxAddOutput
-
public class TxAddOutput extends Object
A tx_add_output message for adding an output during interactive transaction construction.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TxAddOutputclone()Creates a copy of the TxAddOutputbooleaneq(TxAddOutput b)Checks if two TxAddOutputs contain equal inner contents.booleanequals(Object o)protected voidfinalize()byte[]get_channel_id()The channel IDlongget_sats()The satoshi value of the outputbyte[]get_script()The scriptPubKey for the outputlongget_serial_id()A randomly chosen unique identifier for this output, which is even for initiators and odd for non-initiators.static TxAddOutputof(byte[] channel_id_arg, long serial_id_arg, long sats_arg, byte[] script_arg)Constructs a new TxAddOutput given each fieldstatic Result_TxAddOutputDecodeErrorZread(byte[] ser)Read a TxAddOutput from a byte array, created by TxAddOutput_writevoidset_channel_id(byte[] val)The channel IDvoidset_sats(long val)The satoshi value of the outputvoidset_script(byte[] val)The scriptPubKey for the outputvoidset_serial_id(long val)A randomly chosen unique identifier for this output, which is even for initiators and odd for non-initiators.byte[]write()Serialize the TxAddOutput object into a byte array which can be read by TxAddOutput_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_channel_id
public byte[] get_channel_id()
The channel ID
-
set_channel_id
public void set_channel_id(byte[] val)
The channel ID
-
get_serial_id
public long get_serial_id()
A randomly chosen unique identifier for this output, which is even for initiators and odd for non-initiators.
-
set_serial_id
public void set_serial_id(long val)
A randomly chosen unique identifier for this output, which is even for initiators and odd for non-initiators.
-
get_sats
public long get_sats()
The satoshi value of the output
-
set_sats
public void set_sats(long val)
The satoshi value of the output
-
get_script
public byte[] get_script()
The scriptPubKey for the output
-
set_script
public void set_script(byte[] val)
The scriptPubKey for the output
-
of
public static TxAddOutput of(byte[] channel_id_arg, long serial_id_arg, long sats_arg, byte[] script_arg)
Constructs a new TxAddOutput given each field
-
clone
public TxAddOutput clone()
Creates a copy of the TxAddOutput
-
eq
public boolean eq(TxAddOutput b)
Checks if two TxAddOutputs contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields. Two objects with NULL inner values will be considered "equal" here.
-
write
public byte[] write()
Serialize the TxAddOutput object into a byte array which can be read by TxAddOutput_read
-
read
public static Result_TxAddOutputDecodeErrorZ read(byte[] ser)
Read a TxAddOutput from a byte array, created by TxAddOutput_write
-
-