Bolt11Invoice

case class Bolt11Invoice(prefix: String, amount_opt: Option[MilliSatoshi], createdAt: TimestampSecond, nodeId: PublicKey, tags: List[TaggedField], signature: ByteVector)
Value parameters:
amount_opt

amount to pay (empty string means no amount is specified)

createdAt

invoice timestamp (UNIX format)

nodeId

id of the node emitting the invoice

prefix

currency prefix; lnbc for bitcoin, lntb for bitcoin testnet

signature

invoice signature that will be checked against node id

tags

payment tags; must include a single PaymentHash tag and a single PaymentSecret tag.

Companion:
object
Source:
Bolt11Invoice.scala
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

Returns:

the fallback address if any. It could be a script address, pubkey address, ..

Source:
Bolt11Invoice.scala
Returns:

the hash of this payment invoice

Source:
Bolt11Invoice.scala
Value parameters:
priv

private key

Returns:

a signed payment invoice

Source:
Bolt11Invoice.scala
override def toString: String
Returns:

a bech32-encoded payment invoice

Definition Classes
Any
Source:
Bolt11Invoice.scala

Inherited methods

Inherited from:
Product

Concrete fields

Returns:

the description of the payment, or its hash

Source:
Bolt11Invoice.scala
Returns:

the payment hash

Source:
Bolt11Invoice.scala
Returns:

metadata about the payment (see option_payment_metadata).

Source:
Bolt11Invoice.scala
Returns:

the payment secret

Source:
Bolt11Invoice.scala