Skip to content
New issue

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

Error: wallet create options incomplete #80

Open
tynes opened this issue Apr 6, 2018 · 0 comments
Open

Error: wallet create options incomplete #80

tynes opened this issue Apr 6, 2018 · 0 comments

Comments

@tynes
Copy link
Member

tynes commented Apr 6, 2018

The data in the box here: http://bcoin.io/api-docs/index.html?javascript#wallet-options
is incomplete. You can see that it does not include passphrase, which is included in the create wallet example:

let id, passphrase, witness, accountKey;
id='foo'
passphrase='bar'
witness='false'
accountKey='tpubDDh2XgSds1vBbeVgye88gsGQeCityoywRndtyrXcmvWqCgsFUyUKwzeDv8HiJhu9fC8jRAFMqxr4jj8eRTNTycmMao5wmsAScVf4jSMdPYZ'
const client = new bcoin.http.Client();
const options = {
  id: id,
  passphrase: passphrase,
  witness: witness,
  watchOnly: true,
  accountKey: accountKey
};

(async() => {
  const newWallet = await client.createWallet(options)
})();

Because of the link to see all of the options leading up the the box that is incomplete, a user may miss out on the fact that a passphrase can be sent along

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants