We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm creating invoice by using ln-service lib, but the createInvoice doesn't return anything. Here is my code:
const lnService = require('ln-service'); async function main() { try { const { lnd } = lnService.authenticatedLndGrpc({ cert: 'my_cert', macaroon: 'my_macaroon', socket: 'host:port', }); const invoice = await lnService.createInvoice({ lnd, tokens: 100, }); console.log("invoice", invoice); } catch (err) { console.log("err", err); } } main()
The text was updated successfully, but these errors were encountered:
take a look at the test https://github.com/alexbosworth/ln-service/blob/master/test/integration/test_create_invoice.js
you can npm i ln-service and run the test with node test_create_invoice.js if you want to play around with it
node test_create_invoice.js
Sorry, something went wrong.
No branches or pull requests
I'm creating invoice by using ln-service lib, but the createInvoice doesn't return anything. Here is my code:
The text was updated successfully, but these errors were encountered: