Skip to main content
Creates a Spark invoice for receiving a sats payment on Spark.

Method Signature

Parameters

number
The amount of sats to receive (optional for open invoices). Max: 2,100,000,000,000,000 sats (21M BTC).
string
Optional memo/description for the payment
SparkAddressFormat
Optional Spark address of the expected sender
Date
Optional expiry time for the invoice
string
Optional public key of the wallet receiving the invoice. If provided and different from the creator’s identity public key, the created invoice will be unsigned.

Returns

SparkAddressFormat
required
A Spark address/invoice that can be paid by another Spark wallet

Example