Class Event.PaymentPathSuccessful

  • Enclosing class:
    Event

    public static final class Event.PaymentPathSuccessful
    extends Event
    Indicates that a path for an outbound payment was successful. Always generated after [`Event::PaymentSent`] and thus useful for scoring channels. See [`Event::PaymentSent`] for obtaining the payment preimage.
    • Field Detail

      • payment_id

        public final byte[] payment_id
        The `payment_id` passed to [`ChannelManager::send_payment`]. [`ChannelManager::send_payment`]: crate::ln::channelmanager::ChannelManager::send_payment
      • payment_hash

        public final Option_ThirtyTwoBytesZ payment_hash
        The hash that was given to [`ChannelManager::send_payment`]. This will be `Some` for all payments which completed on LDK 0.0.104 or later. [`ChannelManager::send_payment`]: crate::ln::channelmanager::ChannelManager::send_payment
      • path

        public final Path path
        The payment path that was successful. May contain a closed channel if the HTLC sent along the path was fulfilled on chain.