lnbits-js
lnbits-js copied to clipboard
"Invoice (or Admin) key required." if wallet.createInvoice does not explicy provides "out: false"
Apparently the data sent is '{"amount":1000,"memo":"Lightning invoice"}', and throws this error.
Default values didn't not work because an object entity is provided when calling and javascript does not use the default object properties in this case.