Package org.ldk.structs
Class UpdateAddHTLC
- java.lang.Object
-
- org.ldk.structs.UpdateAddHTLC
-
public class UpdateAddHTLC extends Object
An update_add_htlc message to be sent or received from a peer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateAddHTLCclone()Creates a copy of the UpdateAddHTLCprotected voidfinalize()longget_amount_msat()The HTLC value in milli-satoshibyte[]get_channel_id()The channel IDintget_cltv_expiry()The expiry height of the HTLClongget_htlc_id()The HTLC IDbyte[]get_payment_hash()The payment hash, the pre-image of which controls HTLC redemptionstatic Result_UpdateAddHTLCDecodeErrorZread(byte[] ser)Read a UpdateAddHTLC from a byte array, created by UpdateAddHTLC_writevoidset_amount_msat(long val)The HTLC value in milli-satoshivoidset_channel_id(byte[] val)The channel IDvoidset_cltv_expiry(int val)The expiry height of the HTLCvoidset_htlc_id(long val)The HTLC IDvoidset_payment_hash(byte[] val)The payment hash, the pre-image of which controls HTLC redemptionbyte[]write()Serialize the UpdateAddHTLC object into a byte array which can be read by UpdateAddHTLC_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_htlc_id
public long get_htlc_id()
The HTLC ID
-
set_htlc_id
public void set_htlc_id(long val)
The HTLC ID
-
get_amount_msat
public long get_amount_msat()
The HTLC value in milli-satoshi
-
set_amount_msat
public void set_amount_msat(long val)
The HTLC value in milli-satoshi
-
get_payment_hash
public byte[] get_payment_hash()
The payment hash, the pre-image of which controls HTLC redemption
-
set_payment_hash
public void set_payment_hash(byte[] val)
The payment hash, the pre-image of which controls HTLC redemption
-
get_cltv_expiry
public int get_cltv_expiry()
The expiry height of the HTLC
-
set_cltv_expiry
public void set_cltv_expiry(int val)
The expiry height of the HTLC
-
clone
public UpdateAddHTLC clone()
Creates a copy of the UpdateAddHTLC
-
write
public byte[] write()
Serialize the UpdateAddHTLC object into a byte array which can be read by UpdateAddHTLC_read
-
read
public static Result_UpdateAddHTLCDecodeErrorZ read(byte[] ser)
Read a UpdateAddHTLC from a byte array, created by UpdateAddHTLC_write
-
-