Class Payer


  • public class Payer
    extends Object
    A trait defining behavior of an [`Invoice`] payer.
    • Method Detail

      • node_id

        public byte[] node_id()
        Returns the payer's node id.
      • first_hops

        public ChannelDetails[] first_hops()
        Returns the payer's channels.
      • send_payment

        public Result_PaymentIdPaymentSendFailureZ send_payment​(Route route,
                                                                byte[] payment_hash,
                                                                @Nullable
                                                                byte[] payment_secret)
        Sends a payment over the Lightning Network using the given [`Route`]. Note that payment_secret (or a relevant inner pointer) may be NULL or all-0s to represent None
      • send_spontaneous_payment

        public Result_PaymentIdPaymentSendFailureZ send_spontaneous_payment​(Route route,
                                                                            byte[] payment_preimage)
        Sends a spontaneous payment over the Lightning Network using the given [`Route`].
      • retry_payment

        public Result_NonePaymentSendFailureZ retry_payment​(Route route,
                                                            byte[] payment_id)
        Retries a failed payment path for the [`PaymentId`] using the given [`Route`].
      • abandon_payment

        public void abandon_payment​(byte[] payment_id)
        Signals that no further retries for the given payment will occur.