Create a BOLT11 invoice
Generates a new BOLT11 invoice for the specified amount via the Ark server, creating a pending Lightning receive. The invoice expires after expiry_secs if given, otherwise after the Ark server’s invoice expiry, which is also the longest it accepts.
Authorizations
Base64url-encoded auth token
Body
The amount to create invoice for (in satoshis). This is the amount the payee will pay but the final amount received by the client will have any server-configured LightningReceiveFees [blocked] deducted.
x >= 0Optional description embedded in the invoice as its memo.
Optional number of seconds the invoice can be paid for. Defaults to, and cannot exceed, the Ark server's invoice expiry.
x >= 1Optional lightning receive token for authentication of the claim, if the server requires one and there are no existing spendable VTXOs to prove ownership of.
Response
Returns the created invoice
The invoice string