Package org.ldk.structs
Class UpdateFee
- java.lang.Object
-
- org.ldk.structs.UpdateFee
-
public class UpdateFee extends Object
An update_fee message to be sent or received from a peer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateFee
clone()
Creates a copy of the UpdateFeeprotected void
finalize()
byte[]
get_channel_id()
The channel IDint
get_feerate_per_kw()
Fee rate per 1000-weight of the transactionstatic UpdateFee
of(byte[] channel_id_arg, int feerate_per_kw_arg)
Constructs a new UpdateFee given each fieldstatic Result_UpdateFeeDecodeErrorZ
read(byte[] ser)
Read a UpdateFee from a byte array, created by UpdateFee_writevoid
set_channel_id(byte[] val)
The channel IDvoid
set_feerate_per_kw(int val)
Fee rate per 1000-weight of the transactionbyte[]
write()
Serialize the UpdateFee object into a byte array which can be read by UpdateFee_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_feerate_per_kw
public int get_feerate_per_kw()
Fee rate per 1000-weight of the transaction
-
set_feerate_per_kw
public void set_feerate_per_kw(int val)
Fee rate per 1000-weight of the transaction
-
of
public static UpdateFee of(byte[] channel_id_arg, int feerate_per_kw_arg)
Constructs a new UpdateFee given each field
-
write
public byte[] write()
Serialize the UpdateFee object into a byte array which can be read by UpdateFee_read
-
read
public static Result_UpdateFeeDecodeErrorZ read(byte[] ser)
Read a UpdateFee from a byte array, created by UpdateFee_write
-
-