Packages

final case class Invoice(memo: String = "", rPreimage: ByteString = ..., rHash: ByteString = ..., value: Long = 0L, valueMsat: Long = 0L, settled: Boolean = false, creationDate: Long = 0L, settleDate: Long = 0L, paymentRequest: String = "", descriptionHash: ByteString = ..., expiry: Long = 0L, fallbackAddr: String = "", cltvExpiry: Long = 0L, routeHints: Seq[RouteHint] = _root_.scala.Seq.empty, private: Boolean = false, addIndex: Long = 0L, settleIndex: Long = 0L, amtPaid: Long = 0L, amtPaidSat: Long = 0L, amtPaidMsat: Long = 0L, state: InvoiceState = lnrpc.Invoice.InvoiceState.OPEN, htlcs: Seq[InvoiceHTLC] = _root_.scala.Seq.empty, features: Map[Int, Feature] = ..., isKeysend: Boolean = false, paymentAddr: ByteString = ..., isAmp: Boolean = false, unknownFields: UnknownFieldSet = ...) extends GeneratedMessage with Updatable[Invoice] with Product with Serializable

memo

An optional memo to attach along with the invoice. Used for record keeping purposes for the invoice's creator, and will also be set in the description field of the encoded payment request if the description_hash field is not being used.

rPreimage

The hex-encoded preimage (32 byte) which will allow settling an incoming HTLC payable to this preimage. When using REST, this field must be encoded as base64.

rHash

The hash of the preimage. When using REST, this field must be encoded as base64.

value

The value of this invoice in satoshis The fields value and value_msat are mutually exclusive.

valueMsat

The value of this invoice in millisatoshis The fields value and value_msat are mutually exclusive.

settled

Whether this invoice has been fulfilled

creationDate

When this invoice was created

settleDate

When this invoice was settled

paymentRequest

A bare-bones invoice for a payment within the Lightning Network. With the details of the invoice, the sender has all the data necessary to send a payment to the recipient.

descriptionHash

Hash (SHA-256) of a description of the payment. Used if the description of payment (memo) is too long to naturally fit within the description field of an encoded payment request. When using REST, this field must be encoded as base64.

expiry

Payment request expiry time in seconds. Default is 3600 (1 hour).

fallbackAddr

Fallback on-chain address.

cltvExpiry

Delta to use for the time-lock of the CLTV extended to the final hop.

routeHints

Route hints that can each be individually used to assist in reaching the invoice's destination.

private

Whether this invoice should include routing hints for private channels.

addIndex

The "add" index of this invoice. Each newly created invoice will increment this index making it monotonically increasing. Callers to the SubscribeInvoices call can use this to instantly get notified of all added invoices with an add_index greater than this one.

settleIndex

The "settle" index of this invoice. Each newly settled invoice will increment this index making it monotonically increasing. Callers to the SubscribeInvoices call can use this to instantly get notified of all settled invoices with an settle_index greater than this one.

amtPaid

Deprecated, use amt_paid_sat or amt_paid_msat.

amtPaidSat

The amount that was accepted for this invoice, in satoshis. This will ONLY be set if this invoice has been settled. We provide this field as if the invoice was created with a zero value, then we need to record what amount was ultimately accepted. Additionally, it's possible that the sender paid MORE that was specified in the original invoice. So we'll record that here as well.

amtPaidMsat

The amount that was accepted for this invoice, in millisatoshis. This will ONLY be set if this invoice has been settled. We provide this field as if the invoice was created with a zero value, then we need to record what amount was ultimately accepted. Additionally, it's possible that the sender paid MORE that was specified in the original invoice. So we'll record that here as well.

state

The state the invoice is in.

htlcs

List of HTLCs paying to this invoice [EXPERIMENTAL].

features

List of features advertised on the invoice.

isKeysend

Indicates if this invoice was a spontaneous payment that arrived via keysend [EXPERIMENTAL].

paymentAddr

The payment address of this invoice. This value will be used in MPP payments, and also for newer invoies that always require the MPP paylaod for added end-to-end security.

isAmp

Signals whether or not this is an AMP invoice.

Annotations
@SerialVersionUID()
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Invoice
  2. Updatable
  3. GeneratedMessage
  4. Serializable
  5. Serializable
  6. Product
  7. Equals
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Invoice(memo: String = "", rPreimage: ByteString = ..., rHash: ByteString = ..., value: Long = 0L, valueMsat: Long = 0L, settled: Boolean = false, creationDate: Long = 0L, settleDate: Long = 0L, paymentRequest: String = "", descriptionHash: ByteString = ..., expiry: Long = 0L, fallbackAddr: String = "", cltvExpiry: Long = 0L, routeHints: Seq[RouteHint] = _root_.scala.Seq.empty, private: Boolean = false, addIndex: Long = 0L, settleIndex: Long = 0L, amtPaid: Long = 0L, amtPaidSat: Long = 0L, amtPaidMsat: Long = 0L, state: InvoiceState = lnrpc.Invoice.InvoiceState.OPEN, htlcs: Seq[InvoiceHTLC] = _root_.scala.Seq.empty, features: Map[Int, Feature] = ..., isKeysend: Boolean = false, paymentAddr: ByteString = ..., isAmp: Boolean = false, unknownFields: UnknownFieldSet = ...)

    memo

    An optional memo to attach along with the invoice. Used for record keeping purposes for the invoice's creator, and will also be set in the description field of the encoded payment request if the description_hash field is not being used.

    rPreimage

    The hex-encoded preimage (32 byte) which will allow settling an incoming HTLC payable to this preimage. When using REST, this field must be encoded as base64.

    rHash

    The hash of the preimage. When using REST, this field must be encoded as base64.

    value

    The value of this invoice in satoshis The fields value and value_msat are mutually exclusive.

    valueMsat

    The value of this invoice in millisatoshis The fields value and value_msat are mutually exclusive.

    settled

    Whether this invoice has been fulfilled

    creationDate

    When this invoice was created

    settleDate

    When this invoice was settled

    paymentRequest

    A bare-bones invoice for a payment within the Lightning Network. With the details of the invoice, the sender has all the data necessary to send a payment to the recipient.

    descriptionHash

    Hash (SHA-256) of a description of the payment. Used if the description of payment (memo) is too long to naturally fit within the description field of an encoded payment request. When using REST, this field must be encoded as base64.

    expiry

    Payment request expiry time in seconds. Default is 3600 (1 hour).

    fallbackAddr

    Fallback on-chain address.

    cltvExpiry

    Delta to use for the time-lock of the CLTV extended to the final hop.

    routeHints

    Route hints that can each be individually used to assist in reaching the invoice's destination.

    private

    Whether this invoice should include routing hints for private channels.

    addIndex

    The "add" index of this invoice. Each newly created invoice will increment this index making it monotonically increasing. Callers to the SubscribeInvoices call can use this to instantly get notified of all added invoices with an add_index greater than this one.

    settleIndex

    The "settle" index of this invoice. Each newly settled invoice will increment this index making it monotonically increasing. Callers to the SubscribeInvoices call can use this to instantly get notified of all settled invoices with an settle_index greater than this one.

    amtPaid

    Deprecated, use amt_paid_sat or amt_paid_msat.

    amtPaidSat

    The amount that was accepted for this invoice, in satoshis. This will ONLY be set if this invoice has been settled. We provide this field as if the invoice was created with a zero value, then we need to record what amount was ultimately accepted. Additionally, it's possible that the sender paid MORE that was specified in the original invoice. So we'll record that here as well.

    amtPaidMsat

    The amount that was accepted for this invoice, in millisatoshis. This will ONLY be set if this invoice has been settled. We provide this field as if the invoice was created with a zero value, then we need to record what amount was ultimately accepted. Additionally, it's possible that the sender paid MORE that was specified in the original invoice. So we'll record that here as well.

    state

    The state the invoice is in.

    htlcs

    List of HTLCs paying to this invoice [EXPERIMENTAL].

    features

    List of features advertised on the invoice.

    isKeysend

    Indicates if this invoice was a spontaneous payment that arrived via keysend [EXPERIMENTAL].

    paymentAddr

    The payment address of this invoice. This value will be used in MPP payments, and also for newer invoies that always require the MPP paylaod for added end-to-end security.

    isAmp

    Signals whether or not this is an AMP invoice.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addAllFeatures(__vs: Iterable[(Int, Feature)]): Invoice
  5. def addAllHtlcs(__vs: Iterable[InvoiceHTLC]): Invoice
  6. def addAllRouteHints(__vs: Iterable[RouteHint]): Invoice
  7. def addFeatures(__vs: (Int, Feature)*): Invoice
  8. def addHtlcs(__vs: InvoiceHTLC*): Invoice
  9. val addIndex: Long
  10. def addRouteHints(__vs: RouteHint*): Invoice
  11. val amtPaidMsat: Long
  12. val amtPaidSat: Long
  13. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  14. def clearFeatures: Invoice
  15. def clearHtlcs: Invoice
  16. def clearRouteHints: Invoice
  17. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  18. val cltvExpiry: Long
  19. def companion: Invoice.type
    Definition Classes
    Invoice → GeneratedMessage
  20. val creationDate: Long
  21. val descriptionHash: ByteString
  22. def discardUnknownFields: Invoice
  23. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. val expiry: Long
  25. val fallbackAddr: String
  26. val features: Map[Int, Feature]
  27. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  28. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  29. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    Invoice → GeneratedMessage
  30. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    Invoice → GeneratedMessage
  31. val htlcs: Seq[InvoiceHTLC]
  32. val isAmp: Boolean
  33. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  34. val isKeysend: Boolean
  35. val memo: String
  36. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  37. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  38. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  39. val paymentAddr: ByteString
  40. val paymentRequest: String
  41. val private: Boolean
  42. val rHash: ByteString
  43. val rPreimage: ByteString
  44. val routeHints: Seq[RouteHint]
  45. def serializedSize: Int
    Definition Classes
    Invoice → GeneratedMessage
  46. val settleDate: Long
  47. val settleIndex: Long
  48. val state: InvoiceState
  49. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  50. final def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  51. final def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  52. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  53. def toProtoString: String
    Definition Classes
    Invoice → GeneratedMessage
  54. val unknownFields: UnknownFieldSet
  55. def update(ms: (Lens[Invoice, Invoice]) ⇒ Mutation[Invoice]*): Invoice
    Definition Classes
    Updatable
  56. val value: Long
  57. val valueMsat: Long
  58. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  59. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  60. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  61. def withAddIndex(__v: Long): Invoice
  62. def withAmtPaid(__v: Long): Invoice
  63. def withAmtPaidMsat(__v: Long): Invoice
  64. def withAmtPaidSat(__v: Long): Invoice
  65. def withCltvExpiry(__v: Long): Invoice
  66. def withCreationDate(__v: Long): Invoice
  67. def withDescriptionHash(__v: ByteString): Invoice
  68. def withExpiry(__v: Long): Invoice
  69. def withFallbackAddr(__v: String): Invoice
  70. def withFeatures(__v: Map[Int, Feature]): Invoice
  71. def withHtlcs(__v: Seq[InvoiceHTLC]): Invoice
  72. def withIsAmp(__v: Boolean): Invoice
  73. def withIsKeysend(__v: Boolean): Invoice
  74. def withMemo(__v: String): Invoice
  75. def withPaymentAddr(__v: ByteString): Invoice
  76. def withPaymentRequest(__v: String): Invoice
  77. def withPrivate(__v: Boolean): Invoice
  78. def withRHash(__v: ByteString): Invoice
  79. def withRPreimage(__v: ByteString): Invoice
  80. def withRouteHints(__v: Seq[RouteHint]): Invoice
  81. def withSettleDate(__v: Long): Invoice
  82. def withSettleIndex(__v: Long): Invoice
  83. def withSettled(__v: Boolean): Invoice
  84. def withState(__v: InvoiceState): Invoice
  85. def withUnknownFields(__v: UnknownFieldSet): Invoice
  86. def withValue(__v: Long): Invoice
  87. def withValueMsat(__v: Long): Invoice
  88. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  89. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    Invoice → GeneratedMessage
  90. final def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Deprecated Value Members

  1. val amtPaid: Long
    Annotations
    @deprecated
    Deprecated

    (Since version ) Marked as deprecated in proto file

  2. val settled: Boolean
    Annotations
    @deprecated
    Deprecated

    (Since version ) Marked as deprecated in proto file

Inherited from Updatable[Invoice]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped