Package org.ldk.structs
Class Event.PaymentReceived
- java.lang.Object
-
- org.ldk.structs.Event
-
- org.ldk.structs.Event.PaymentReceived
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ldk.structs.Event
Event.FundingGenerationReady, Event.PaymentFailed, Event.PaymentForwarded, Event.PaymentReceived, Event.PaymentSent, Event.PendingHTLCsForwardable, Event.SpendableOutputs
-
-
Field Summary
Fields Modifier and Type Field Description long
amt
The value, in thousandths of a satoshi, that this payment is for.byte[]
payment_hash
The hash for which the preimage should be handed to the ChannelManager.PaymentPurpose
purpose
Information for claiming this received payment, based on whether the purpose of the payment is to pay an invoice or to send a spontaneous payment.
-
Method Summary
-
Methods inherited from class org.ldk.structs.Event
clone, finalize, funding_generation_ready, payment_failed, payment_forwarded, payment_received, payment_sent, pending_htlcs_forwardable, spendable_outputs, write
-
-
-
-
Field Detail
-
payment_hash
public final byte[] payment_hash
The hash for which the preimage should be handed to the ChannelManager.
-
amt
public final long amt
The value, in thousandths of a satoshi, that this payment is for. Note that you must compare this to the expected value before accepting the payment (as otherwise you are providing proof-of-payment for less than the value you expected!).
-
purpose
public final PaymentPurpose purpose
Information for claiming this received payment, based on whether the purpose of the payment is to pay an invoice or to send a spontaneous payment.
-
-