From 4946583afec19f519d1f2b541c1d0662de179c7a Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Thu, 21 Jul 2016 17:29:07 -0300 Subject: [PATCH] mv post params to query string --- lib/blockchainexplorers/insight.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/blockchainexplorers/insight.js b/lib/blockchainexplorers/insight.js index ed0260c..121dd49 100644 --- a/lib/blockchainexplorers/insight.js +++ b/lib/blockchainexplorers/insight.js @@ -100,14 +100,16 @@ Insight.prototype.getTransactions = function(addresses, from, to, cb) { if (_.isNumber(from)) qs.push('from=' + from); if (_.isNumber(to)) qs.push('to=' + to); + // Trim output + qs.push('noAsm=1'); + qs.push('noScriptSig=1'); + qs.push('noSpent=1'); + var args = { method: 'POST', path: this.apiPrefix + '/addrs/txs' + (qs.length > 0 ? '?' + qs.join('&') : ''), json: { - addrs: [].concat(addresses).join(','), - noAsm: 1, - noScriptSig: 1, - noSpent: 1, + addrs: [].concat(addresses).join(',') }, };