Class PaymentRelay


  • public class PaymentRelay
    extends Object
    Parameters for relaying over a given [`BlindedHop`]. [`BlindedHop`]: crate::blinded_path::BlindedHop
    • Method Detail

      • 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
      • write

        public byte[] write()
        Serialize the PaymentRelay object into a byte array which can be read by PaymentRelay_read