Package org.ldk.structs
Class PaymentRelay
- java.lang.Object
-
- org.ldk.structs.PaymentRelay
-
public class PaymentRelay extends Object
Parameters for relaying over a given [`BlindedHop`]. [`BlindedHop`]: crate::blinded_path::BlindedHop
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentRelayclone()Creates a copy of the PaymentRelayprotected voidfinalize()shortget_cltv_expiry_delta()Number of blocks subtracted from an incoming HTLC's `cltv_expiry` for this [`BlindedHop`].intget_fee_base_msat()Base fee charged (in millisatoshi) for relaying a payment over this [`BlindedHop`].intget_fee_proportional_millionths()Liquidity fee charged (in millionths of the amount transferred) for relaying a payment over this [`BlindedHop`], (i.e., 10,000 is 1%).static PaymentRelayof(short cltv_expiry_delta_arg, int fee_proportional_millionths_arg, int fee_base_msat_arg)Constructs a new PaymentRelay given each fieldstatic Result_PaymentRelayDecodeErrorZread(byte[] ser)Read a PaymentRelay from a byte array, created by PaymentRelay_writevoidset_cltv_expiry_delta(short val)Number of blocks subtracted from an incoming HTLC's `cltv_expiry` for this [`BlindedHop`].voidset_fee_base_msat(int val)Base fee charged (in millisatoshi) for relaying a payment over this [`BlindedHop`].voidset_fee_proportional_millionths(int val)Liquidity fee charged (in millionths of the amount transferred) for relaying a payment over this [`BlindedHop`], (i.e., 10,000 is 1%).byte[]write()Serialize the PaymentRelay object into a byte array which can be read by PaymentRelay_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_cltv_expiry_delta
public short get_cltv_expiry_delta()
Number of blocks subtracted from an incoming HTLC's `cltv_expiry` for this [`BlindedHop`].
-
set_cltv_expiry_delta
public void set_cltv_expiry_delta(short val)
Number of blocks subtracted from an incoming HTLC's `cltv_expiry` for this [`BlindedHop`].
-
get_fee_proportional_millionths
public int get_fee_proportional_millionths()
Liquidity fee charged (in millionths of the amount transferred) for relaying a payment over this [`BlindedHop`], (i.e., 10,000 is 1%).
-
set_fee_proportional_millionths
public void set_fee_proportional_millionths(int val)
Liquidity fee charged (in millionths of the amount transferred) for relaying a payment over this [`BlindedHop`], (i.e., 10,000 is 1%).
-
get_fee_base_msat
public int get_fee_base_msat()
Base fee charged (in millisatoshi) for relaying a payment over this [`BlindedHop`].
-
set_fee_base_msat
public void set_fee_base_msat(int val)
Base fee charged (in millisatoshi) for relaying a payment over this [`BlindedHop`].
-
of
public static PaymentRelay of(short cltv_expiry_delta_arg, int fee_proportional_millionths_arg, int fee_base_msat_arg)
Constructs a new PaymentRelay given each field
-
clone
public PaymentRelay clone()
Creates a copy of the PaymentRelay
-
write
public byte[] write()
Serialize the PaymentRelay object into a byte array which can be read by PaymentRelay_read
-
read
public static Result_PaymentRelayDecodeErrorZ read(byte[] ser)
Read a PaymentRelay from a byte array, created by PaymentRelay_write
-
-