Class ForwardTlvs


  • public class ForwardTlvs
    extends Object
    Data to construct a [`BlindedHop`] for forwarding a payment.
    • Method Detail

      • get_short_channel_id

        public long get_short_channel_id()
        The short channel id this payment should be forwarded out over.
      • set_short_channel_id

        public void set_short_channel_id​(long val)
        The short channel id this payment should be forwarded out over.
      • get_payment_relay

        public PaymentRelay get_payment_relay()
        Payment parameters for relaying over [`Self::short_channel_id`].
      • set_payment_relay

        public void set_payment_relay​(PaymentRelay val)
        Payment parameters for relaying over [`Self::short_channel_id`].
      • get_payment_constraints

        public PaymentConstraints get_payment_constraints()
        Payment constraints for relaying over [`Self::short_channel_id`].
      • set_payment_constraints

        public void set_payment_constraints​(PaymentConstraints val)
        Payment constraints for relaying over [`Self::short_channel_id`].
      • get_features

        public BlindedHopFeatures get_features()
        Supported and required features when relaying a payment onion containing this object's corresponding [`BlindedHop::encrypted_payload`]. [`BlindedHop::encrypted_payload`]: crate::blinded_path::BlindedHop::encrypted_payload
      • set_features

        public void set_features​(BlindedHopFeatures val)
        Supported and required features when relaying a payment onion containing this object's corresponding [`BlindedHop::encrypted_payload`]. [`BlindedHop::encrypted_payload`]: crate::blinded_path::BlindedHop::encrypted_payload
      • write

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