Class Event

    • Method Detail

      • clone

        public Event clone()
        Creates a copy of the Event
        Overrides:
        clone in class Object
      • funding_generation_ready

        public static Event funding_generation_ready​(byte[] temporary_channel_id,
                                                     long channel_value_satoshis,
                                                     byte[] output_script,
                                                     long user_channel_id)
        Utility method to constructs a new FundingGenerationReady-variant Event
      • payment_received

        public static Event payment_received​(byte[] payment_hash,
                                             long amt,
                                             PaymentPurpose purpose)
        Utility method to constructs a new PaymentReceived-variant Event
      • payment_sent

        public static Event payment_sent​(byte[] payment_preimage)
        Utility method to constructs a new PaymentSent-variant Event
      • payment_failed

        public static Event payment_failed​(byte[] payment_hash,
                                           boolean rejected_by_dest)
        Utility method to constructs a new PaymentFailed-variant Event
      • pending_htlcs_forwardable

        public static Event pending_htlcs_forwardable​(long time_forwardable)
        Utility method to constructs a new PendingHTLCsForwardable-variant Event
      • spendable_outputs

        public static Event spendable_outputs​(SpendableOutputDescriptor[] outputs)
        Utility method to constructs a new SpendableOutputs-variant Event
      • payment_forwarded

        public static Event payment_forwarded​(Option_u64Z fee_earned_msat,
                                              boolean claim_from_onchain_tx)
        Utility method to constructs a new PaymentForwarded-variant Event
      • write

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