bcoin-org.github.io icon indicating copy to clipboard operation
bcoin-org.github.io copied to clipboard

Error: wallet create options incomplete

Open tynes opened this issue 7 years ago • 0 comments

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

tynes avatar Apr 06 '18 21:04 tynes