Class CounterpartyForwardingInfo


  • public class CounterpartyForwardingInfo
    extends Object
    Information needed for constructing an invoice route hint for this channel.
    • Method Detail

      • get_fee_base_msat

        public int get_fee_base_msat()
        Base routing fee in millisatoshis.
      • set_fee_base_msat

        public void set_fee_base_msat​(int val)
        Base routing fee in millisatoshis.
      • get_fee_proportional_millionths

        public int get_fee_proportional_millionths()
        Amount in millionths of a satoshi the channel will charge per transferred satoshi.
      • set_fee_proportional_millionths

        public void set_fee_proportional_millionths​(int val)
        Amount in millionths of a satoshi the channel will charge per transferred satoshi.
      • get_cltv_expiry_delta

        public short get_cltv_expiry_delta()
        The minimum difference in cltv_expiry between an ingoing HTLC and its outgoing counterpart, such that the outgoing HTLC is forwardable to this counterparty. See `msgs::ChannelUpdate`'s `cltv_expiry_delta` for more details.
      • set_cltv_expiry_delta

        public void set_cltv_expiry_delta​(short val)
        The minimum difference in cltv_expiry between an ingoing HTLC and its outgoing counterpart, such that the outgoing HTLC is forwardable to this counterparty. See `msgs::ChannelUpdate`'s `cltv_expiry_delta` for more details.
      • of

        public static CounterpartyForwardingInfo of​(int fee_base_msat_arg,
                                                    int fee_proportional_millionths_arg,
                                                    short cltv_expiry_delta_arg)
        Constructs a new CounterpartyForwardingInfo given each field
      • write

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