Closed JaviLib closed 3 weeks ago
Yeah, I see how the documentation is a bit weird here. So the [arguments...]
part comes from the CLI library that generates the help text and is there for every command. But there are no command line arguments for the create
command, only interactive queries.
So the text should say something like:
... This is interactive command with one required
input prompt (the password), and one optional input (the mnemonic
passphrase).
If you want to create a wallet programmatically, I suggest looking into lndinit
which was created for that exact purpose.
I would like to work on this issue! Can I take it?
Background
lncli create
is not honoring its documentation which says the following:When I do the following command I obtain the following:
Now, if you read carefully, it says that the fist argument is the password, and the second argument is optional. But what I get is an interactive form asking for a password, that I already provided in the first argument, and it is also asking for a seed, which is optional according to the documentation. And not only I am not obtaining the 24 words, but in fact I am returned an error.
This makes programatically configurations imposible. I have to attach a stdin and gess what
lncli
is going to ask, which is not optimal. I truly want the process to be fully automatic and be gifted with the 24 words, as the documentation promises.Your environment
lnd
0.18.1bbtcd
,bitcoind
, or other backend NEUTRINO