Packages

final case class Invoice(memo: String = "", rPreimage: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, rHash: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, value: Long = 0L, valueMsat: Long = 0L, settled: Boolean = false, creationDate: Long = 0L, settleDate: Long = 0L, paymentRequest: String = "", descriptionHash: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, expiry: Long = 0L, fallbackAddr: String = "", cltvExpiry: UInt64 = lnrpc.Invoice._typemapper_cltvExpiry.toCustom(0L), routeHints: Seq[RouteHint] = _root_.scala.Seq.empty, private: Boolean = false, addIndex: UInt64 = lnrpc.Invoice._typemapper_addIndex.toCustom(0L), settleIndex: UInt64 = lnrpc.Invoice._typemapper_settleIndex.toCustom(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[UInt32, Feature] = _root_.scala.collection.immutable.Map.empty, isKeysend: Boolean = false, paymentAddr: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, isAmp: Boolean = false, ampInvoiceState: Map[String, AMPInvoiceState] = _root_.scala.collection.immutable.Map.empty, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) 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. Note: Output only, don't specify for creating an invoice.

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. The field is deprecated. Use the state field instead (compare to SETTLED).

creationDate

When this invoice was created. Measured in seconds since the unix epoch. Note: Output only, don't specify for creating an invoice.

settleDate

When this invoice was settled. Measured in seconds since the unix epoch. Note: Output only, don't specify for creating an invoice.

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. Note: Output only, don't specify for creating an invoice.

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 86400 (24 hours).

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. Note: When enabled, if value and value_msat are zero, a large number of hints with these channels can be included, which might not be desirable.

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. Note: Output only, don't specify for creating an invoice.

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. Note: Output only, don't specify for creating an invoice.

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 or accepted. 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. Note: Output only, don't specify for creating an invoice.

amtPaidMsat

The amount that was accepted for this invoice, in millisatoshis. This will ONLY be set if this invoice has been settled or accepted. 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. Note: Output only, don't specify for creating an invoice.

state

The state the invoice is in. Note: Output only, don't specify for creating an invoice.

htlcs

List of HTLCs paying to this invoice [EXPERIMENTAL]. Note: Output only, don't specify for creating an invoice.

features

List of features advertised on the invoice. Note: Output only, don't specify for creating an invoice.

isKeysend

Indicates if this invoice was a spontaneous payment that arrived via keysend [EXPERIMENTAL]. Note: Output only, don't specify for creating an invoice.

paymentAddr

The payment address of this invoice. This value will be used in MPP payments, and also for newer invoices that always require the MPP payload for added end-to-end security. Note: Output only, don't specify for creating an invoice.

isAmp

Signals whether or not this is an AMP invoice.

ampInvoiceState

[EXPERIMENTAL]: Maps a 32-byte hex-encoded set ID to the sub-invoice AMP state for the given set ID. This field is always populated for AMP invoices, and can be used along side LookupInvoice to obtain the HTLC information related to a given sub-invoice. Note: Output only, don't specify for creating an invoice.

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

Instance Constructors

  1. new Invoice(memo: String = "", rPreimage: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, rHash: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, value: Long = 0L, valueMsat: Long = 0L, settled: Boolean = false, creationDate: Long = 0L, settleDate: Long = 0L, paymentRequest: String = "", descriptionHash: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, expiry: Long = 0L, fallbackAddr: String = "", cltvExpiry: UInt64 = lnrpc.Invoice._typemapper_cltvExpiry.toCustom(0L), routeHints: Seq[RouteHint] = _root_.scala.Seq.empty, private: Boolean = false, addIndex: UInt64 = lnrpc.Invoice._typemapper_addIndex.toCustom(0L), settleIndex: UInt64 = lnrpc.Invoice._typemapper_settleIndex.toCustom(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[UInt32, Feature] = _root_.scala.collection.immutable.Map.empty, isKeysend: Boolean = false, paymentAddr: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, isAmp: Boolean = false, ampInvoiceState: Map[String, AMPInvoiceState] = _root_.scala.collection.immutable.Map.empty, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty)

    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. Note: Output only, don't specify for creating an invoice.

    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. The field is deprecated. Use the state field instead (compare to SETTLED).

    creationDate

    When this invoice was created. Measured in seconds since the unix epoch. Note: Output only, don't specify for creating an invoice.

    settleDate

    When this invoice was settled. Measured in seconds since the unix epoch. Note: Output only, don't specify for creating an invoice.

    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. Note: Output only, don't specify for creating an invoice.

    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 86400 (24 hours).

    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. Note: When enabled, if value and value_msat are zero, a large number of hints with these channels can be included, which might not be desirable.

    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. Note: Output only, don't specify for creating an invoice.

    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. Note: Output only, don't specify for creating an invoice.

    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 or accepted. 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. Note: Output only, don't specify for creating an invoice.

    amtPaidMsat

    The amount that was accepted for this invoice, in millisatoshis. This will ONLY be set if this invoice has been settled or accepted. 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. Note: Output only, don't specify for creating an invoice.

    state

    The state the invoice is in. Note: Output only, don't specify for creating an invoice.

    htlcs

    List of HTLCs paying to this invoice [EXPERIMENTAL]. Note: Output only, don't specify for creating an invoice.

    features

    List of features advertised on the invoice. Note: Output only, don't specify for creating an invoice.

    isKeysend

    Indicates if this invoice was a spontaneous payment that arrived via keysend [EXPERIMENTAL]. Note: Output only, don't specify for creating an invoice.

    paymentAddr

    The payment address of this invoice. This value will be used in MPP payments, and also for newer invoices that always require the MPP payload for added end-to-end security. Note: Output only, don't specify for creating an invoice.

    isAmp

    Signals whether or not this is an AMP invoice.

    ampInvoiceState

    [EXPERIMENTAL]: Maps a 32-byte hex-encoded set ID to the sub-invoice AMP state for the given set ID. This field is always populated for AMP invoices, and can be used along side LookupInvoice to obtain the HTLC information related to a given sub-invoice. Note: Output only, don't specify for creating an 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 addAllAmpInvoiceState(__vs: Iterable[(String, AMPInvoiceState)]): Invoice
  5. def addAllFeatures(__vs: Iterable[(UInt32, Feature)]): Invoice
  6. def addAllHtlcs(__vs: Iterable[InvoiceHTLC]): Invoice
  7. def addAllRouteHints(__vs: Iterable[RouteHint]): Invoice
  8. def addAmpInvoiceState(__vs: (String, AMPInvoiceState)*): Invoice
  9. def addFeatures(__vs: (UInt32, Feature)*): Invoice
  10. def addHtlcs(__vs: InvoiceHTLC*): Invoice
  11. val addIndex: UInt64
  12. def addRouteHints(__vs: RouteHint*): Invoice
  13. val ampInvoiceState: Map[String, AMPInvoiceState]
  14. val amtPaidMsat: Long
  15. val amtPaidSat: Long
  16. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  17. def clearAmpInvoiceState: Invoice
  18. def clearFeatures: Invoice
  19. def clearHtlcs: Invoice
  20. def clearRouteHints: Invoice
  21. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  22. val cltvExpiry: UInt64
  23. def companion: Invoice.type
    Definition Classes
    Invoice → GeneratedMessage
  24. val creationDate: Long
  25. val descriptionHash: ByteString
  26. def discardUnknownFields: Invoice
  27. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. val expiry: Long
  29. val fallbackAddr: String
  30. val features: Map[UInt32, Feature]
  31. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  32. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  33. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    Invoice → GeneratedMessage
  34. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    Invoice → GeneratedMessage
  35. val htlcs: Seq[InvoiceHTLC]
  36. val isAmp: Boolean
  37. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  38. val isKeysend: Boolean
  39. val memo: String
  40. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  41. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  42. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  43. val paymentAddr: ByteString
  44. val paymentRequest: String
  45. val private: Boolean
  46. def productElementNames: Iterator[String]
    Definition Classes
    Product
  47. val rHash: ByteString
  48. val rPreimage: ByteString
  49. val routeHints: Seq[RouteHint]
  50. def serializedSize: Int
    Definition Classes
    Invoice → GeneratedMessage
  51. val settleDate: Long
  52. val settleIndex: UInt64
  53. val state: InvoiceState
  54. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  55. final def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  56. final def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  57. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  58. def toProtoString: String
    Definition Classes
    Invoice → GeneratedMessage
  59. val unknownFields: UnknownFieldSet
  60. def update(ms: (Lens[Invoice, Invoice]) => Mutation[Invoice]*): Invoice
    Definition Classes
    Updatable
  61. val value: Long
  62. val valueMsat: Long
  63. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  64. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  65. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  66. def withAddIndex(__v: UInt64): Invoice
  67. def withAmpInvoiceState(__v: Map[String, AMPInvoiceState]): Invoice
  68. def withAmtPaid(__v: Long): Invoice
  69. def withAmtPaidMsat(__v: Long): Invoice
  70. def withAmtPaidSat(__v: Long): Invoice
  71. def withCltvExpiry(__v: UInt64): Invoice
  72. def withCreationDate(__v: Long): Invoice
  73. def withDescriptionHash(__v: ByteString): Invoice
  74. def withExpiry(__v: Long): Invoice
  75. def withFallbackAddr(__v: String): Invoice
  76. def withFeatures(__v: Map[UInt32, Feature]): Invoice
  77. def withHtlcs(__v: Seq[InvoiceHTLC]): Invoice
  78. def withIsAmp(__v: Boolean): Invoice
  79. def withIsKeysend(__v: Boolean): Invoice
  80. def withMemo(__v: String): Invoice
  81. def withPaymentAddr(__v: ByteString): Invoice
  82. def withPaymentRequest(__v: String): Invoice
  83. def withPrivate(__v: Boolean): Invoice
  84. def withRHash(__v: ByteString): Invoice
  85. def withRPreimage(__v: ByteString): Invoice
  86. def withRouteHints(__v: Seq[RouteHint]): Invoice
  87. def withSettleDate(__v: Long): Invoice
  88. def withSettleIndex(__v: UInt64): Invoice
  89. def withSettled(__v: Boolean): Invoice
  90. def withState(__v: InvoiceState): Invoice
  91. def withUnknownFields(__v: UnknownFieldSet): Invoice
  92. def withValue(__v: Long): Invoice
  93. def withValueMsat(__v: Long): Invoice
  94. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  95. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    Invoice → GeneratedMessage
  96. 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 Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped