Class Event.PaymentClaimed

  • Enclosing class:
    Event

    public static final class Event.PaymentClaimed
    extends Event
    Indicates a payment has been claimed and we've received money! This most likely occurs when [`ChannelManager::claim_funds`] has been called in response to an [`Event::PaymentReceived`]. However, if we previously crashed during a [`ChannelManager::claim_funds`] call you may see this event without a corresponding [`Event::PaymentReceived`] event. # Note LDK will not stop an inbound payment from being paid multiple times, so multiple `PaymentReceived` events may be generated for the same payment. If you then call [`ChannelManager::claim_funds`] twice for the same [`Event::PaymentReceived`] you may get multiple `PaymentClaimed` events. [`ChannelManager::claim_funds`]: crate::ln::channelmanager::ChannelManager::claim_funds
    • Field Detail

      • payment_hash

        public final byte[] payment_hash
        The payment hash of the claimed payment. Note that LDK will not stop you from registering duplicate payment hashes for inbound payments.
      • amount_msat

        public final long amount_msat
        The value, in thousandths of a satoshi, that this payment is for.
      • purpose

        public final PaymentPurpose purpose
        The purpose of this claimed payment, i.e. whether the payment was for an invoice or a spontaneous payment.