ruimarinho / bitcoin-core

A modern Bitcoin Core REST and RPC client.
477 stars 186 forks source link

Add createWallet method #93

Closed tiero closed 5 years ago

tiero commented 5 years ago

It seems is not exported yet. There is a way to do a raw rpc call with this library, like in this case?

pedrobranco commented 5 years ago

You can use client.command method to call RPC methods. Example:

client.command('createwallet', 'foobar', true)
  .then(response => console.log(response));
// Outputs: { name: 'foobar', warning: '' }
pedrobranco commented 5 years ago

Now you can use directly the method createWallet on the latest version v2.2.0.