Class RawInvoice


  • public class RawInvoice
    extends Object
    Represents an syntactically correct Invoice for a payment on the lightning network, but without the signature information. De- and encoding should not lead to information loss but may lead to different hashes. For methods without docs see the corresponding methods in `Invoice`.
    • Method Detail

      • set_data

        public void set_data​(RawDataPart val)
        data part
      • eq

        public boolean eq​(RawInvoice b)
        Checks if two RawInvoices contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields. Two objects with NULL inner values will be considered "equal" here.
      • hash

        public byte[] hash()
        Calculate the hash of the encoded `RawInvoice`
      • payment_hash

        @Nullable
        public Sha256 payment_hash()
        Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
      • description

        @Nullable
        public Description description()
        Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
      • payee_pub_key

        @Nullable
        public PayeePubKey payee_pub_key()
        Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
      • description_hash

        @Nullable
        public Sha256 description_hash()
        Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
      • expiry_time

        @Nullable
        public ExpiryTime expiry_time()
        Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
      • min_final_cltv_expiry

        @Nullable
        public MinFinalCltvExpiry min_final_cltv_expiry()
        Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
      • payment_secret

        @Nullable
        public byte[] payment_secret()
        Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
      • features

        @Nullable
        public InvoiceFeatures features()
        Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
      • amount_pico_btc

        public Option_u64Z amount_pico_btc()