diff --git a/lib/bitcoind.js b/lib/bitcoind.js index 39df3ae0..86f1a6f2 100644 --- a/lib/bitcoind.js +++ b/lib/bitcoind.js @@ -667,8 +667,8 @@ function Wallet() { return obj; } -Wallet.prototype.createAddress = function(name) { - return bitcoindjs.walletNewAddress({ name: name }); +Wallet.prototype.createAddress = function(options) { + return bitcoindjs.walletNewAddress(options || {}); }; Wallet.prototype.getAccountAddress = function(options) { @@ -719,23 +719,25 @@ Wallet.prototype.getTransaction = function(options) { return bitcoindjs.walletGetTransaction(options || {}); }; -Wallet.prototype.backupWallet = function(options) { +Wallet.prototype.backup = function(options) { return bitcoindjs.walletBackup(options || {}); }; -Wallet.prototype.walletPassphrase = function(options) { +Wallet.prototype.decrypt = +Wallet.prototype.passphrase = function(options) { return bitcoindjs.walletPassphrase(options || {}); }; -Wallet.prototype.walletPassphraseChange = function(options) { +Wallet.prototype.passphraseChange = function(options) { return bitcoindjs.walletPassphraseChange(options || {}); }; -Wallet.prototype.walletLock = function(options) { +Wallet.prototype.forgetPassphrase = +Wallet.prototype.lock = function(options) { return bitcoindjs.walletLock(options || {}); }; -Wallet.prototype.encryptWallet = function(options) { +Wallet.prototype.encrypt = function(options) { return bitcoindjs.walletEncrypt(options || {}); };