Package org.ldk.structs
Class TxInitRbf
- java.lang.Object
-
- org.ldk.structs.TxInitRbf
-
public class TxInitRbf extends Object
A tx_init_rbf message which initiates a replacement of the transaction after it's been completed.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TxInitRbfclone()Creates a copy of the TxInitRbfbooleaneq(TxInitRbf b)Checks if two TxInitRbfs contain equal inner contents.booleanequals(Object o)protected voidfinalize()byte[]get_channel_id()The channel IDintget_feerate_sat_per_1000_weight()The feerate of the transactionOption_i64Zget_funding_output_contribution()The number of satoshis the sender will contribute to or, if negative, remove from (e.g.intget_locktime()The locktime of the transactionstatic TxInitRbfof(byte[] channel_id_arg, int locktime_arg, int feerate_sat_per_1000_weight_arg, Option_i64Z funding_output_contribution_arg)Constructs a new TxInitRbf given each fieldstatic Result_TxInitRbfDecodeErrorZread(byte[] ser)Read a TxInitRbf from a byte array, created by TxInitRbf_writevoidset_channel_id(byte[] val)The channel IDvoidset_feerate_sat_per_1000_weight(int val)The feerate of the transactionvoidset_funding_output_contribution(Option_i64Z val)The number of satoshis the sender will contribute to or, if negative, remove from (e.g.voidset_locktime(int val)The locktime of the transactionbyte[]write()Serialize the TxInitRbf object into a byte array which can be read by TxInitRbf_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_locktime
public int get_locktime()
The locktime of the transaction
-
set_locktime
public void set_locktime(int val)
The locktime of the transaction
-
get_feerate_sat_per_1000_weight
public int get_feerate_sat_per_1000_weight()
The feerate of the transaction
-
set_feerate_sat_per_1000_weight
public void set_feerate_sat_per_1000_weight(int val)
The feerate of the transaction
-
get_funding_output_contribution
public Option_i64Z get_funding_output_contribution()
The number of satoshis the sender will contribute to or, if negative, remove from (e.g. splice-out) the funding output of the transaction
-
set_funding_output_contribution
public void set_funding_output_contribution(Option_i64Z val)
The number of satoshis the sender will contribute to or, if negative, remove from (e.g. splice-out) the funding output of the transaction
-
of
public static TxInitRbf of(byte[] channel_id_arg, int locktime_arg, int feerate_sat_per_1000_weight_arg, Option_i64Z funding_output_contribution_arg)
Constructs a new TxInitRbf given each field
-
eq
public boolean eq(TxInitRbf b)
Checks if two TxInitRbfs 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 TxInitRbf object into a byte array which can be read by TxInitRbf_read
-
read
public static Result_TxInitRbfDecodeErrorZ read(byte[] ser)
Read a TxInitRbf from a byte array, created by TxInitRbf_write
-
-