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 UpdateAddHTLC
clone()
Creates a copy of the UpdateAddHTLCprotected void
finalize()
long
get_amount_msat()
The HTLC value in milli-satoshibyte[]
get_channel_id()
The channel IDint
get_cltv_expiry()
The expiry height of the HTLClong
get_htlc_id()
The HTLC IDbyte[]
get_payment_hash()
The payment hash, the pre-image of which controls HTLC redemptionstatic Result_UpdateAddHTLCDecodeErrorZ
read(byte[] ser)
Read a UpdateAddHTLC from a byte array, created by UpdateAddHTLC_writevoid
set_amount_msat(long val)
The HTLC value in milli-satoshivoid
set_channel_id(byte[] val)
The channel IDvoid
set_cltv_expiry(int val)
The expiry height of the HTLCvoid
set_htlc_id(long val)
The HTLC IDvoid
set_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
-
-