bcoin-org.github.io
bcoin-org.github.io copied to clipboard
Error: wallet create options incomplete
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