makeInvoice
Last updated
Was this helpful?
Last updated
Was this helpful?
Request that the user creates an invoice to be used by the web app. This will return a invoice. Invoices can be requested in a few forms:
By specifying an explicit amount
, the user's provider should enforce that the user generate an invoice with a specific amount
By specifying a minimumAmount
and / or maximumAmount
, the user's provider should enforce that the user generate an invoice with an amount field constrained by that amount
When an explicit amount
is not set, the us
Amounts are denominated in satoshis. For large amounts, it's recommended you use a big number library such as or as Javascript only supports 32 bit integers.
event
— required object
amount
— optional string|number
the satoshis to send
defaultAmount
— optional string|number
minimumAmount
— optional string|number
maximumAmount
— optional string|number
defaultMemo
— optional string