diff --git a/lib/services/bitcoind.js b/lib/services/bitcoind.js index 0f12f10b..8f864345 100644 --- a/lib/services/bitcoind.js +++ b/lib/services/bitcoind.js @@ -589,6 +589,9 @@ Bitcoin.prototype._paginateTxids = function(fullTxids, from, to) { Bitcoin.prototype.getAddressHistory = function(addressArg, options, callback) { var self = this; var addresses = [addressArg]; + if (_.isArray(addressArg)) { + addresses = addressArg; + } if (addresses.length > this.maxAddressesQuery) { return callback(new TypeError('Maximum number of addresses (' + this.maxAddressesQuery + ') exceeded')); }